[hobbit] how to implement custom tests
Henrik Stoerner
henrik at hswn.dk
Thu Jul 7 22:38:20 CEST 2005
On Thu, Jul 07, 2005 at 03:27:35PM -0500, Reif Jeffery M wrote:
> I installed Hobbit on my (former) BB server. The clients are reporting
> in normally. However, I have some tests for hosts (NetApp, Tandem -
> that have no BB client) that run on the BB server and use the bb
> executable to "trick" the server into thinking it received it from an
> external client. For example:
>
> exec("/opt/bb/bin/bb", $IP, "status $machine.$test $color $now\n
> $status\n
> @array\n
> ")
> or die( "$1: Couldn't execute BB");
>
>
> Is there an equivalent function on the Hobbit server that can accomplish
> this without having both BB and Hobbit installed?
Hobbit comes with a "bb" binary that acts just like the Big Brother one.
So your script should work just fine, although you may need to change
that hard-coded path to /opt/bb/bin/bb (or setup links).
Regards,
Henrik
More information about the Xymon
mailing list