On Fri, Nov 26, 2004 at 03:46:28PM +0800, Andrew MacTaggart wrote:
> The cgi works fine, and the graphs are generated for a little while and
> then stop.
> 
> I ssh to the server and start the daemon via the
> /usr/local/bin/smokping start
> 
> rrd creates the graghs but when the graghing stops, I login to the
> server and notice that the daemon pid is no longer running. No messages
> in the logs.
 
This used to happen to me also. I didnt really find the cause of the 
smokeping crashes. I did install a crontab entry that would
periodically check if smokeping was alive and restarted it if needed.
Something like :
pgrep -xn smokeping > /dev/null || (smokeping --restart && (echo "Subject: 
smokeping is not running! Restarting at `date`" | sendmail -f sender  
recipient)) . Of course you can write something more
elegant if you want... I run that (through crontab) every 30 minutes.

HTH

--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to