Xymon Mailing List Archive search

how to implement custom tests

list Henrik Størner
Thu, 7 Jul 2005 22:38:20 +0200
Message-Id: <user-f2b42cef9402@xymon.invalid>

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