On 7/16/07, <b class="gmail_sendername">Henrik Stoerner</b> <<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Jul 16, 2007 at 12:43:55PM -0400, Eric Jacobs wrote:<br>> The trap.pl uses hobbitboard to find all the hosts that have the<br>> "trap" test defined.<br><br>Bad idea - there's a chicken-and-egg problem here.
<br><br>Columns do not appear in the hobbitdboard output until they exist,<br>i.e. a status has been reported to Hobbit. So if *something* must<br>report a "trap" status to Hobbit before the trap.pl script sees<br>
that it should do the "trap" thing ... well, I guess you can tell<br>where I'm going.<br><br>Scripts that implement custom tests should use the "bbhostgrep"<br>utility to scan the bb-hosts file for the hosts that have a
<br>specific tag defined.<br><br>There is actually another way it can be done, but it's not yet<br>documented: You can send a "hostinfo" command to hobbitd, and it<br>will return a pre-parsed version of the bb-hosts file - one line
<br>per hosts, with the fields delimited by '|' characters, eg:<br>mail.hswn.dk|172.16.10.2|NET:intern|COMMENT:Internal mail server|smtp|pop3|imap</blockquote><div><br><br>What's the syntax to send a "hostinfo" command to "hobbitd"?
<br><br> <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Regards,<br>Henrik<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></blockquote></div><br><br clear="all"><br>-- <br>Asif Iqbal<br>PGP Key: 0xE62693C5 KeyServer: <a href="http://pgp.mit.edu">pgp.mit.edu
</a><br><br><br>