[hobbit] running 2 --extra-script
Andy France
Andy at zespri.com
Tue May 17 23:55:04 CEST 2005
henrik at hswn.dk (Henrik Stoerner) wrote on 18/05/2005 09:07:20:
> On Tue, May 17, 2005 at 03:26:52PM +0000, Jon Bjorn Njalsson wrote:
> >
> > This morning I was running successfully with one custom rrd graph. I
> > then added another in hobbitlaunch.cfg like this
> >
> > [larrdstatus]
> > ENVFILE /usr/local/hobbit/server/etc/hobbitserver.cfg
> > NEEDS hobbitd
> > CMD hobbitd_channel --channel=status --log=$BBSERVERLOGS/larrd-
> > status.log hobbitd_larrd --rrddir=$BBVAR/rrd --extra-
> > script=/usr/local/hobbit/server/ext/exchange.sh --extra-tests=exchdb --
> > extra-script=/usr/local/hobbit/server/ext/informix.sh --extra-
> > tests=informix
> >
> > and the informix script works fine but the first one stopped graphing
> > just about the time I added the second one. Is it not possible to run 2
> > custom scripts or am I doing something wrong ?
I use just one --extra-tests argument thus:
--extra-tests=exchdb,informix
> No, but it is very simple to have your script distinguish between the
> different status messages it can receive. Just build it like this:
> HOSTNAME="$1"
> TESTNAME="$2"
> FILENAME="$3"
> case "$TESTNAME" in)
> "informix")
> # Do the informix stuff
> ;;
> "exchdb")
> # Do the exchange stuff
> ;;
> esac
And yes, I combine all my tests in one script like Henrik says :-)
In fact, the hobbitd_larrd.8.html man page specifically states that the
--extra-script option can only be given once, and outlines running multiple
tests in the CUSTOM RRD DATA section.
>
> Henrik
HTH,
Andy.
#####################################################################################
This email is intended for the person to whom it is addressed
only. If you are not the intended recipient, do not read, copy
or use the contents in any way. The opinions expressed may not
necessarily reflect those of ZESPRI Group of Companies ('ZESPRI').
While every effort has been made to verify the information
contained herein, ZESPRI does not make any representations
as to the accuracy of the information or to the performance
of any data, information or the products mentioned herein.
ZESPRI will not accept liability for any losses, damage or
consequence, however, resulting directly or indirectly from
the use of this e-mail/attachments.
#####################################################################################
More information about the Xymon
mailing list