Wow. Well, that's one way to work around my wonky code :) I'm putting
a bit more debug code in the 0.3.0-beta2 release, so that might help us
track down where this is hanging up.
-Eric
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of
Matthew Epp
Sent: Tuesday, June 05, 2007 3:46 PM
To: dev...@li...
Subject: [Devmon] Purple alerts
Well I'm still having issues with my devmon daemon hanging. The
processes don't go away, it just seems to stop reporting to Hobbit,
about once a day or so. For anyone else having this issue, I whipped up
a quick and ugly cron job to determine if it's working and restart if
not:
#!/bin/bash
export QUERY=3D`/bb/server/bin/bb 127.0.0.1 "hobbitdboard
host=3DSOME_NETWORK_DEVICE test=3Dcpu fields=3Dlogtime"`
export CURRTIME=3D`perl -e "print scalar(time())"`
export DIFF=3D$((CURRTIME - QUERY))
echo "`date`: LOGTIME:$QUERY CURRENT:$CURRTIME DIFF:$DIFF" >>
/bb/logs/devmon-restart.log
if [ $DIFF -gt 300 ]; then
pkill -u bbuser devmon
su - bbuser -c "/path/to/devmon"
echo "`date`: LOG OLDER THAN 5 MINS. RESTARTING DEVMON!" >>
/bb/logs/devmon-restart.log
fi
------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Devmon-support mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/devmon-support
|