<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">My custom script is not reporting anything to the Hobbit Server. I'm running this script on the Hobbit server.<br>
<br>
I have placed my script in /usr/lib/hobbit/server/ext/b.pl. The script basically does nothing but report green:<br>
<br>
#!/usr/bin/perl -w<br>
use strict;<br>
<br>
# Xymon Variables<br>
#$ENV{BBPROG}    = "b.pl";<br>
my($TESTNAME)   = "test";<br>
my($BBHOME)     = $ENV{BBHOME};<br>
my($BB)         = $ENV{BB};<br>
my($BBDISP)     = $ENV{BBDISP};<br>
my($BBVAR)      = $ENV{BBVAR};<br>
my($MACHINE)    = $ENV{MACHINE};<br>
my($DATE)       = localtime;<br>
my($COLOR)      = "green";<br>
my($MSG)        = "";<br>
my($HEAD)       = "";<br>
my($DATA)       = "";<br>
<br>
print "$MACHINE\n";<br>
$MACHINE =~ s/\./,/g;<br>
      my($cmd) = "$BB $BBDISP \"status $MACHINE.$TESTNAME $COLOR $DATE $HEAD\n$DATA\n$MSG\"";<br>
      system($cmd);<br>
<br>
<br>
<br>
<br>
I put the following lines in the  /etc/hobbit/hobbitlaunch.cfg<br>
[test]<br>
        ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg<br>
        NEEDS hobbitd<br>
        CMD /usr/lib/hobbit/server/ext/b.pl<br>
        LOGFILE $BBSERVERLOGS/test.log<br>
        INTERVAL 5m<br>
<br>
I have put 'test' in the bb-hosts file:<br>
subpage vips VIPS<br>
xxx.xxx.xxx.xxx   server1 #test<br>
xxx.xxx.xxx.xxx  server2 #test<br>
<br>
<br>
<br>
Any help will be greatly appreciated.<br>
<br>
Rod<br>
<br>
</div>
</body>
</html>