[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Software watchdog
> yes, something like that, but having the possibility of dealing
> with individual tasks (let's say that it checks apache, mysql and the
> network; if any of those ain't right, it takes the brute force approach
> of rebooting, or restarting the process if feasible).
In theory you should be able to do something like that with a simple shell
script. Depending on how often you want the daemons checked, a crude watchdog
(for say httpd) could conist of doing a wget on a certain page, and if the
wget fails, the script can stop and restart the httpd daemon.
It doesn't matter if the script doesn't run ... if the httpd deamon's locked
up, then there's a good chance most of the machine will have locked up, so the
kernel watchdog can do a system reboot.
It depends how robust you want the thing in the end :) Monitoring daemons is
much more a user-space issue rather than kernel-space, IMO.
Alternatively, you could try doing something with Linux-HA, which gives
mirroring, heartbeats, IP address take over, etc ... I don't know how mature
it is though - I've been asked my a friend to look into it, so I'll see :)
Chris...
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.