[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

defining ext scripts from server - feature request



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