Xymon Mailing List Archive search

larrds extra-tests

2 messages in this thread

list Patrick Vaughan · Wed, 29 Jun 2005 15:59:46 -0400 ·
I'm trying to setup some custom graphs and an having some problems.  It doesn't look like the extra-script is running.

Here is the relavent lines from hobbitlaunch.cfg:

CMD hobbitd_channel --channel=status --log=$BBSERVERLOGS/larrd-status.log hobbitd_larrd --rrddir=$BBVAR/rrd --extra-script=/usr/lib/hobbit/server/bin/hobbit-ext-larrd.sh

CMD hobbitd_channel --channel=data   --log=$BBSERVERLOGS/larrd-data.log hobbitd_larrd --rrddir=$BBVAR/rrd --extra-tests=vmio

Here's my testing script:
#!/bin/sh

# Input parameters: Hostname, testname (column), and messagefile
HOSTNAME="$1"
TESTNAME="$2"
FNAME="$3"

echo "HOSTNAME=$1 TESTNAME=$2 FNAME=$3" > /tmp/hobbit-ext-larrd.out

I tried adding LARRD:*,vmio to the bb-hosts file for one of the nodes.  I took that back out and added it to the LARRDS and GRAPHS options in hobbitserver.cfg.

I get the graph icon on the bottom of my screen, but the script never runs (it never writes the tmp file).

There has to be something simple that I'm missing, but I don't see it.
list Henrik Størner · Wed, 29 Jun 2005 22:24:38 +0200 ·
quoted from Patrick Vaughan
On Wed, Jun 29, 2005 at 03:59:46PM -0400, Patrick Vaughan wrote:
I'm trying to setup some custom graphs and an having some problems.  It doesn't look like the extra-script is running.

Here is the relavent lines from hobbitlaunch.cfg:

CMD hobbitd_channel --channel=status --log=$BBSERVERLOGS/larrd-status.log hobbitd_larrd --rrddir=$BBVAR/rrd --extra-script=/usr/lib/hobbit/server/bin/hobbit-ext-larrd.sh

CMD hobbitd_channel --channel=data   --log=$BBSERVERLOGS/larrd-data.log hobbitd_larrd --rrddir=$BBVAR/rrd --extra-tests=vmio
You need the --extra-tests and --extra-script on both of the CMD
settings:

   CMD hobbitd_channel --channel=status --log=$BBSERVERLOGS/larrd-status.log hobbitd_larrd --rrddir=$BBVAR/rrd --extra-script=/usr/lib/hobbit/server/bin/hobbit-ext-larrd.sh --extra-tests=vmio

   CMD hobbitd_channel --channel=data   --log=$BBSERVERLOGS/larrd-data.log hobbitd_larrd --rrddir=$BBVAR/rrd --extra-script=/usr/lib/hobbit/server/bin/hobbit-ext-larrd.sh --extra-tests=vmio


Each of the hobbitd_larrd tasks is independent. So unless you know if
your vmio script report to Hobbit using either a "status" or a "data"
message, the safest way is to enable it on both of them.


Henrik