iloire / watchmen

A simple node.js service monitor
MIT License
941 stars 195 forks source link

Webserver Restart to see updated stats? #10

Closed tedyoung closed 9 years ago

tedyoung commented 11 years ago

I started the server and the web server. I then added some new hosts to the hosts.js file, shutdown and restarted the server.js, but the web server wasn't reporting any of the new statistics until I shutdown and restarted the web server. I didn't see anything obvious. Is there some delay in the webserver getting the data from the redis store? Or is it caching the service list?

iloire commented 11 years ago

Yes, it is caching the server lists (see lib/service.js)

Ideally, hosts and services would be added using sort of a control panel (auth needs to be implemented), and the data would be stored in redis. Every time a service is created or updated, watchmen would update the corresponding monitoring task.

That´s in the TODO list, I am afraid :)

iloire commented 9 years ago

This is not an issue in watchmen 3.x