defining ext scripts from server - feature request

Charles Jones jonescr at cisco.com
Thu Sep 28 19:29:20 CEST 2006


I have an environment where I have many many machines that all have a 
common filesystem (for the most part). So far Hobbit has been wonderful 
in that is gracefully handles having a shared hobbit client home 
directory, by the clients writing their logfiles with the hostname as 
part of the filename, etc.

One problem I am having though, is ext tests. If I create an ext test 
for one machine, it ends up running on them all. It would be nice if we 
could define from the hobbit server, which ext tests were to be run. For 
example, in the hobbitclients.cfg, if you could do something like:

HOST=somehost
     PROC "/some/proc/specific/to/this/host"
     DISK /web 95 98
     *EXT $HOBBITCLIENTHOME/ext/some_ext.sh INTERVAL 5m*

This would be really handy because then only the client you defined 
would run that ext script.

In the meantime, I am getting around this by doing this at the top of my 
ext scripts:

HOSTNAME=`/bin/hostname`
if [ 'myhost' != $HOSTNAME ]; then #Only run on myhost
   exit 0
fi

This makes the script gracefully exit on the clients that I do not want 
to run it.

-Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20060928/e27433b8/attachment.html>


More information about the Xymon mailing list