[hobbit] Status Question
Mike Dingeldey
mdingeldey at sbcglobal.net
Sat Feb 10 19:50:49 CET 2007
Thanks Richard. I'm still trying to determine what I *really* want to do.
Thanks for the help with my random thought.
----- Original Message -----
From: "Richard Leyton" <richard at leyton.org>
To: <hobbit at hswn.dk>
Sent: Saturday, February 10, 2007 1:00 PM
Subject: Re: [hobbit] Status Question
> Hi Mike,
>
> If you want to query the status of a test/host, you need to use the
> 'hobbitdboard' command to bb to pull back the status. There are a
> bunch of other operations that might be useful. See the bb(1) manpage.
>
> An example (see below) I have is for a particular host ('reports'),
> we need to clear out the purples every week (as the 'service' is the
> name of the report, and these can vary). As I don't care beyond a day
> or two about old reports. So the first part does what you want -
> pulls back the status for the host. The second remainder just pulls
> out the bits I want and wraps it around to drop the host.
>
> There's no security, server side, with hobbit, so this can be run by
> any user on any system, so long as the IP details are correct. Note
> I've two servers here. If you've just one server you can just specify
> the IP address on the command line.
>
> Hope that helps or gives you something to start with.
>
> Richard.
>
>>
>> #!/bin/bash
>>
>> export BBDISPLAYS="127.0.0.1 192.168.50.13"
>>
>> ~hobbit/client/bin/bb 0.0.0.0 "hobbitdboard host=reports"|grep
>> purple|awk -F\| '{print $2}'|xargs -i ~/client/bin/bb 0.0.0.0 'drop
>> reports {}'
>
>
> --
> Richard Leyton - richard at leyton.org
> http://www.leyton.org
>
>
>
>
> On 10 Feb 2007, at 17:21, Michael Dingeldey wrote:
>
>> Is there any way to query hobbit directly via an external script
>> (separate from hobbit) so that
>> I can get the current status of a device and display the status dot
>> on a floor plan (or in this case, a hand-crafted web page with our
>> floor plans as jpegs)? What would I query? The
>> reason I ask is that there is other information that I might want
>> to monitor besides the connectivity status of the device.
>>
>> At this point I am looking for any suggestions as to the best way
>> for doing this. If possible,
>> I would like to have this process separate from hobbit - but I
>> completely understand if I need
>> to have the script run by hobbit.
>>
>> Has anyone done this, or should I not even consider this? Any and
>> all thoughts are welcome.
>>
>> TIA!
>>
>>
>> Mike Dingeldey
>>
>> Like Jimmy says: If we weren't all crazy, we'd all go insane....
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
More information about the Xymon
mailing list