[hobbit] External scripts not working the same?
Deal, Richard
rdeal at tigr.ORG
Tue Oct 25 19:02:30 CEST 2005
Are you using the snmp script from deadcat or maybe the bb-xsnmp.pl
script?
In any case hobbitlaunch runs things generally every 5 minutes.
Here are some examples that I have added to the hobbitlaunch.cfg on the
server:
[aironet]
ENVFILE
/local/packages/IT/HOBBIT/hobbit/client/etc/hobbitclient.cfg
NEEDS hobbitd
CMD /local/packages/IT/HOBBIT/hobbit/server/ext/aironet.pl
LOGFILE $BBSERVERLOGS/aironet.log
INTERVAL 5m
[snmp]
ENVFILE
/local/packages/IT/HOBBIT/hobbit/client/etc/hobbitclient.cfg
NEEDS hobbitd
CMD /local/packages/IT/HOBBIT/hobbit/server/ext/snmp
LOGFILE $BBSERVERLOGS/snmp.log
INTERVAL 5m
This has the server run these two scripts (snmp and aironet.pl) every 5
minutes (from the INTERVAL line), and sets the environment from the
hobbitclient.cfg file.
-----Original Message-----
From: Stewart_Larsen at doh.state.fl.us
[mailto:Stewart_Larsen at doh.state.fl.us]
Sent: Tuesday, October 25, 2005 12:51 PM
To: hobbit at hswn.dk
Subject: [hobbit] External scripts not working the same?
Greetings,
We are looking at migrating from BB to Hobbit. One major stumbling block
right now is that we have over 400 devices on the network right now that
we monitor via SNMP. Firewalls, Routers, proxies, etc.
Our basic script in BB was under the ext folder on the server and was
run every 5 minutes when bbtest-net ran. An instance of this script was
called for each device we needed checked. It pulled the IP address of
the device from the environment variables and called the bb executable
with it's result when the test was completed. This doesn't seem to be
possible in hobbit. Every reference I've seen in the archives has told
people to use hobbitlaunch.
Unless I'm misunderstanding things (which is possible...), I can tell
hobbitlaunch to fire off my external script every 5 minutes, but the
script will only run that one time, meaning I'd have to modify my script
to run a loop through all of the devices that I want the test run for.
This is not really the way we want to go, because then it ignores the
hosts that are planned down for maintenance and such.
What I'd like to do is add a service tag in the bbhost file called
router_test. Then, when the network tests are run, hobbit should be
smart enough to know that there is an external script defined in
hobbitlaunch.cfg that matches that tag and run it for that machine. Is
this possible?
Little help for a newbie to Hobbit?
Stewart
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk
More information about the Xymon
mailing list