<br><br><div class="gmail_quote">On Mon, Feb 8, 2010 at 5:36 PM, Daniel McDonald <span dir="ltr"><<a href="mailto:dan.mcdonald@austinenergy.com">dan.mcdonald@austinenergy.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 2/8/10 10:37 AM, "Steinar M. Skúlason" <<a href="mailto:steinarms@gmail.com">steinarms@gmail.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I'm having problems with "msgcache" on the client machines and "hobbitfetch"<br>
> on the server machine.<br>
> It works for a short period and then get's stuck and all my client side checks<br>
> end up with status purple.<br>
<br>
</div>Yup.  Been doing that for a long time here.  I sent a bunch of corefiles to<br>
Henrik about it, and he tried a bunch of patches.  Eventually, we just wrote<br>
a routine that restarts hobbitfetch whenever a host turns purple.<br>
<font color="#888888"><br>
--<br>
Daniel J McDonald, CCIE # 2495, CISSP # 78281<br>
<br>
<br>
To unsubscribe from the hobbit list, send an e-mail to<br>
<a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br>
<br>
<br></font></blockquote><div> </div></div>Ok, good to hear that I am not the only one.<br>

I wrote a ugly routine that restarts hobbitfetch if there is no new entry in the logfile<br><br>

<br>

#!/bin/bash<br>

<br>

#This is to see if any progress has been made within the hobbitfetch utility.<br>

TMP_FILE=/tmp/tmp.hobbitfetch.last<br>

LAST_LINE=`tail -1 /usr/lib/xymon/server/log/hobbitfetch.log|awk '{print $1 $2}'`<br>

PREV_LINE=`cat /tmp/tmp.hobbitfetch.last`<br>

echo $LAST_LINE > $TMP_FILE<br>

<br>

if [ "$LAST_LINE" == "$PREV_LINE" ]; then<br>

  echo "Nothing has happend .... killing hobbitfetch!"<br>

  PID=`ps -ef|grep hobbitfetch|awk '{print $2}'`<br>

  kill -9 $PID<br>

fi<br><br>Best Regards,<br>Steinar M.<br>