[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Mysql daemon monitoring



> Hello ,
> 
> I am looking for a solution in order to monitoring mysql 
> daemon to restart automatically the daemon when is down.
> 
> I was thinking maybe there is a possibility like services 
> watching in the cobalt interface
> 
> thanks in advance
> 
> @+
> 
> Fred                         mailto:journal@xxxxxxx


Hi Fred,
This isn't quite what you asked for, but we have a pesky Mysql daemon on
a test-raq, and although checking WHY it goes down, I've put in place a
restart script into the CRON, so that every 30 mins if its down it
restarts it. This might be of some use, although we actually use
NETSAINT (www.nesaint.org) which is server monitoring software for linux
that alerts people on failures, etc.

The cron entry (in /etc/crontab) is:
0,30 * * * * root /etc/rc.d/init.d/mysql start >/dev/null 2> /dev/null

Then restart cron (/etc/rc.d/init.d/crond restart)

Hope that helps,

Andy
andy@xxxxxxxxxxxxxxxxxxxxx
http://ineedlinux.info/