[hobbit] Hobbit not recognizing certain tests?
Jacobs, Eric (ThomasTech)
Eric.Jacobs at thomastechsolutions.com
Mon Jul 16 23:30:02 CEST 2007
Sorry, my mistake. The part of trap.pl that uses hobbitboard is checking on
the status of existing traps. The subroutine that sends the traps doesn't.
Back to the drawing board.
Eric
> -----Original Message-----
> From: henrik at hswn.dk [mailto:henrik at hswn.dk]
> Sent: Monday, July 16, 2007 4:41 PM
> To: hobbit at hswn.dk
> Subject: Re: [hobbit] Hobbit not recognizing certain tests?
>
>
> On Mon, Jul 16, 2007 at 12:43:55PM -0400, Eric Jacobs wrote:
> > The trap.pl uses hobbitboard to find all the hosts that have the
> > "trap" test defined.
>
> Bad idea - there's a chicken-and-egg problem here.
>
> Columns do not appear in the hobbitdboard output until they exist,
> i.e. a status has been reported to Hobbit. So if *something* must
> report a "trap" status to Hobbit before the trap.pl script sees
> that it should do the "trap" thing ... well, I guess you can tell
> where I'm going.
>
> Scripts that implement custom tests should use the "bbhostgrep"
> utility to scan the bb-hosts file for the hosts that have a
> specific tag defined.
>
> There is actually another way it can be done, but it's not yet
> documented: You can send a "hostinfo" command to hobbitd, and it
> will return a pre-parsed version of the bb-hosts file - one line
> per hosts, with the fields delimited by '|' characters, eg:
> mail.hswn.dk|172.16.10.2|NET:intern|COMMENT:Internal mail
> server|smtp|pop3|imap
>
>
> Regards,
> Henrik
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
More information about the Xymon
mailing list