[CentOS] Service monitoring/"Monit"?
Geoff Galitz
geoff at galitz.orgFri Jun 11 11:39:18 UTC 2010
- Previous message: [CentOS] Service monitoring/"Monit"?
- Next message: [CentOS] Service monitoring/"Monit"?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I have a feeling that introducing nagios monitoring is a little too > involved, though. I want to distribute the setup to external systems, so > ideally there should be one "monitoring" package install and a simple > "enable" command at the most, in addition to installation of the actual > software. > > rpm -Uvh monit-<version>.rpm > chkconfig monit on > > Is really quite ideal, except for the fact that it only nearly gives me > what I want :-( Gotcha. Would a simple shell script be sufficient? Something like: ------------------------------- while : ## loop forever do /sbin/service [app] status if [$? -ne 0 ]; ## services which should be running, but are dead ## return a non-zero status code then service [app] restart fi sleep 120 ## sleep for about two minutes do ------------------------------- Adding mail notifications and other standard functions would be trivial. To monitor various services just create add a for loop in there. Just a thought. -Geoff --------------------------------- Geoff Galitz Blankenheim NRW, Germany http://www.galitz.org/ http://german-way.com/blog/
- Previous message: [CentOS] Service monitoring/"Monit"?
- Next message: [CentOS] Service monitoring/"Monit"?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list