Derek,
I was wondering if anyone has tried to use the 'who' test to see if anyone is logged on and if someone is logged on have the test go yellow?
I am looking at doing this and instead of trying to re-invent the wheel i was wondering if anyone has tried/or did this already?
I have done it using a client channel test based on Henrik's template, which can be extended for various other functionality - I've put some stuff in there for checking whether the client has a default gateway on .1 (this bit me once with a host with static IP but gateway coming - or not - from DHCP), and also a check for amount of memory allocated to the service console on an ESX host.
You need the following in ~hobbit/server/etc/hobbitlaunch.cfg
|#
script that checks incoming "client" messages for various conditions
[client-check] ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg NEEDS hobbitd CMD hobbitd_channel --channel=client --log=$BBSERVERLOGS/client-check.log $BBHOME/ext/client-check.pl
|The client-check.pl script attached sits in the ext directory. It uses the hacked version of BigBrother.pm (also attached). It was originally from deadcat but I've tweaked it a bit - there's also some ancient history in there no longer relevant to xymon. Really need a Xymon::Client module that Buchan suggested.
David.
-- David Baldwin - IT Unit Australian Sports Commission www.ausport.gov.au Tel 02 62147830 Fax 02 62141830 PO Box 176 Belconnen ACT 2616 david.baldwin at ausport.gov.au Leverrier Street Bruce ACT 2617
Keep up to date with what's happening in Australian sport visit http://www.ausport.gov.au