From: Matthew E. <mat...@us...> - 2007-06-05 19:46:21
|
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=`/bb/server/bin/bb 127.0.0.1 "hobbitdboard host=SOME_NETWORK_DEVICE test=cpu fields=logtime"` export CURRTIME=`perl -e "print scalar(time())"` export DIFF=$((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 |