[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] msgcache hobbitfetch problems
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] msgcache hobbitfetch problems
- From: Steinar M. Skúlason <steinarms (at) gmail.com>
- Date: Mon, 8 Feb 2010 18:12:30 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=6x/iNq//JJy9chI8OADf/VtONuDA4NDS/oiftmfHld8=; b=T4qRAdvS43r0FoxrJmVVnOaYttmBv4aG1XnqeC2kkxahlPmP+QOBdG9fhRV5xwwyPS g11W89gSN85m61ICoW19fDVVl1xWDXJ4wYDRdFUFofZvgJQY+/MVMH6zmFxgncPk2M// gdIdAijx4bhDgHvLBuolv+e8zYz4HnkZTeiio=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=vteYJiuvzd1c+RFNU7UAiZ4dHK9vX4ykpTiRDX2LR73Pthy4jIUXAAmGIXlke9h98Z PM/PKxVvPKQYJFzOueRxy7tbeyIecEBOYca+IMKJghDIsut4X5z7sFt+NyZ4nfXs5YF0 36nmzPpSE5wLSTcUrvcPwJeGXG0JVmPUDcCn4=
- References: <17bd4d511002080837jae111bi26a2da3186e092f8 (at) mail.gmail.com> <C795A7D3.5B84%dan.mcdonald (at) austinenergy.com>
On Mon, Feb 8, 2010 at 5:36 PM, Daniel McDonald <
dan.mcdonald (at) austinenergy.com> wrote:
> On 2/8/10 10:37 AM, "Steinar M. Skúlason" <steinarms (at) gmail.com> wrote:
>
> > Hi,
> >
> > I'm having problems with "msgcache" on the client machines and
> "hobbitfetch"
> > on the server machine.
> > It works for a short period and then get's stuck and all my client side
> checks
> > end up with status purple.
>
> Yup. Been doing that for a long time here. I sent a bunch of corefiles to
> Henrik about it, and he tried a bunch of patches. Eventually, we just
> wrote
> a routine that restarts hobbitfetch whenever a host turns purple.
>
> --
> Daniel J McDonald, CCIE # 2495, CISSP # 78281
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>
Ok, good to hear that I am not the only one.
I wrote a ugly routine that restarts hobbitfetch if there is no new entry in
the logfile
#!/bin/bash
#This is to see if any progress has been made within the hobbitfetch
utility.
TMP_FILE=/tmp/tmp.hobbitfetch.last
LAST_LINE=`tail -1 /usr/lib/xymon/server/log/hobbitfetch.log|awk '{print $1
$2}'`
PREV_LINE=`cat /tmp/tmp.hobbitfetch.last`
echo $LAST_LINE > $TMP_FILE
if [ "$LAST_LINE" == "$PREV_LINE" ]; then
echo "Nothing has happend .... killing hobbitfetch!"
PID=`ps -ef|grep hobbitfetch|awk '{print $2}'`
kill -9 $PID
fi
Best Regards,
Steinar M.