[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Monitoring SMB shares
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Monitoring SMB shares
- From: dOCtoR MADneSs <doctor (at) makelofine.org>
- Date: Fri, 31 Jul 2009 19:29:56 +0200
- References: <833FE11B4A07FD4789F720B6F915124F0786CA34A8 (at) HHCGVL-COMM01> <Pine.LNX.4.64.0907162108490.30236 (at) pal34.desy.de> <833FE11B4A07FD4789F720B6F915124F0786CA34AA (at) HHCGVL-COMM01> <4A5FA203.20104 (at) makelofine.org> <833FE11B4A07FD4789F720B6F915124F0786CA34AF (at) HHCGVL-COMM01> <4A60D1CC.2090905 (at) makelofine.org> <833FE11B4A07FD4789F720B6F915124F0786CA34D9 (at) HHCGVL-COMM01> <4A69B24F.3040706 (at) makelofine.org> <833FE11B4A07FD4789F720B6F915124F0786CA355C (at) HHCGVL-COMM01> <4A71BBC5.9020504 (at) makelofine.org> <833FE11B4A07FD4789F720B6F915124F0786CA3568 (at) HHCGVL-COMM01> <4A72B913.4010705 (at) makelofine.org> <833FE11B4A07FD4789F720B6F915124F0786CA3570 (at) HHCGVL-COMM01>
- User-agent: Thunderbird 2.0.0.22 (X11/20090608)
Harold J. Ballinger a écrit :
> I have this in hobbitlaunch.cfg:
> ----------COPIED WITH NO EDITS-------------
> [shares]
> ENVFILE /etc/hobbit/hobbitserver.cfg
> NEEDS hobbitd
> CMD /usr/lib/hobbit/server/ext/shares.sh
> LOGFILE $BBSERVERLOGS/shares.log
> INTERVAL 5m
> -------------------------------------------
>
> It appears to be running since I get this in shares.log:
> ----------COPIED WITH NO EDITS-------------
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status .shares date
> ---------------------------------------------
>
> Should the line in the log above actually look like this instead:
>
> /usr/lib/hobbit/server/bin/bb 127.0.0.1 status HHCGVL-FILE01.shares green 'date'
>
> I don't see it sending across the hostname or status?
>
> -----Original Message-----
>
>> Hi,
>>
>> This code checks if the BBHOME variable is set. When xymon runs a
>> script, it sets some values, including BBHOME. For hobbit/xymon
>> compatibility, you could replace :
>> . $BBHOME/etc/bbdef.sh
>> with
>> . $BBHOME/etc/hobbitclient.cfg # INCLUDE STANDARD DEFINITIONS
>>
>> In your case, I suppose you declare the plugin with the following :
>> [shares]
>> ENVFILE /usr/local/xymon/client/etc/hobbitclient.cfg
>> CMD $PATH_TO_SERVER_EXT_DIR/shares.sh
>> LOGFILE $/PATH_TO_SERVER_LOG_DIR/hobbitclient.log
>> INTERVAL 5m
>> Please confirm this point or tell us the way you declared it.
>>
>> To unsubscribe from the hobbit list, send an e-mail to
>> hobbit-unsubscribe (at) hswn.dk
>>
>
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>
it seems your script does not send the machine variable. Output must be
in this format :
bb $BBDISP STATUS $MACHINE.$TEST $COLOR $DATE
So, we must correct some code :
at the end, replace :
$BB $BBDISP "status ${FULLNAME}.shares $BGCOLOR `date` $LINE"
with
$BB $BBDISP "status $MACHINE.shares $BGCOLOR $(date) $LINE"
and give me the new outputs in shares.log