Xymon Mailing List Archive search

Questions about hobbitd_rrd

list Jason Chambers
Wed, 19 Sep 2007 16:09:21 -0400
Message-Id: <user-182ee017aa94@xymon.invalid>

Which makes this even more interesting, because 1 system is going to have multiple rrd fill-ins (for a blade center)

IE.

1 host is going to have rrd files for temperature, voltage, power consumption, fan speed, etc. All in a single swoop. Meaning that I need to open and close multiple rrd files in a single test.

It's starting to sound like I should have stuck with Cacti and found a way to get the graphs into hobbit. This is definitely not making things easy! :\


Jason Chambers     I.T. Helpdesk Associate      Geosoft Inc.
XX Richmond St W - Toronto, ON, CA - M5H 2C9 - Tel: XXX.XXX.XXXX ext XXX - Fax: XXX.XXX.XXXX


-----Original Message-----
From: user-ce96540ed38f@xymon.invalid [mailto:user-ce96540ed38f@xymon.invalid]
Sent: September-19-07 3:58 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Questions about hobbitd_rrd

On Wednesday 19 September 2007, Jason Chambers wrote:
While I'm on my lunch break, I need a little further information about
hobbit_rrd.

It describes the fact that only 1 script can run, but can work for multiple
tests. I'm just wondering how this can be done. The example script shows
multiple data for 1 test. Would you echo the datasets, the file name, and
data repeatedly one after another for each test in 1 script?

Eg,

echo "DS:temperature:GAUGE:120:75:0"
echo "temperature.rrd"
echo "$TEMP"

echo "DS:blowers:GAUGE:100:120:0"
echo "blowers.rrd"
echo "$BLOWERS"
ect...

I use a wrapper script that calls the specific RRD graphing script based on
test name. Below is the shell script I use. Then you just need to configure
your [rrdstatus] hobbitlaunch.cfg section with the
options "--extra-script=$BBHOME/bin/rrd-scripts/rrd-wrapper.sh --extra-tests=wsstat,schealth,dbdisk,mem"

#!/bin/bash
#
# $1 - HostName
# $2 - TestName
# $3 - LogFName
rrdScript="/home/hobbit/server/bin/rrd-scripts"

if [ "$2" == "wsstat" ] ; then
        $rrdScript/wsstat-rrd.pl $1 $2 $3
elif [ "$2" == "schealth" ] ; then
        $rrdScript/schealth-rrd.pl $1 $2 $3
elif [ "$2" == "dbdisk" ] ; then
        $rrdScript/dbdisk-rrd.pl $1 $2 $3
elif [ "$2" == "mem" ] ; then
        $rrdScript/memory-rrd.sh $1 $2 $3
else
        echo "No script defined for $2"
fi