From: Kauffman, T. <Kau...@ni...> - 2008-10-09 18:34:01
|
----Original Message---- From: Thomas Kähn [mailto:tk...@we...] Sent: Thursday, October 09, 2008 9:52 AM To: dev...@li... Subject: [Devmon] Solution for the purple issue? > Hi, > > is there anyone who has found a solution to the purple issue apart > from restarting devmon on a regular basis or when Hobbit is turning > purple? > > Currently I need to restart three times per hour in order to avoid > those alarms. > > In case there is a patch which can help finding the problem I am > willing to give it a try. > > Best regards > Thomas No patch - but I've got a hobbit-driven script that does the shutdown/restart only if the devmon status message doesnt show up at the hobbit server. Add to ~/server/etc/hobbitlaunch.cfg [devmonstatus] CMD /usr/local/hobbit/server/ext/dm-status.sh LOGFILE $BBSERVERLOGS/dm-status.log INTERVAL 5m Script: #!/bin/sh # Check to see if devmon is hung, and restart if needed MYNAME=`hostname` NOW=`date +%s` DM_STATUS=`/usr/local/hobbit/server/bin/bb ${MYNAME} "hobbitdboard host=${MYNAME } test=dm fields=logtime"` DIFF=$(( ${NOW} - ${DM_STATUS} )) echo " `date` now is ${NOW}; dm_status is ${DM_STATUS}; difference is ${DIFF}" # If DIFF is greater than 420 (seven minutes) we'll shut devmon down if [ ${DIFF} -gt 420 ]; then echo "devmon seems to be hung -- restarting" kill `cat /var/run/devmon/devmon.pid` sleep 155 /usr/local/devmon/devmon fi exit Hope this is of some help - TK |