[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] Questions about hobbitd_rrd
- To: "hobbit (at) hswn.dk" <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] Questions about hobbitd_rrd
- From: Jason Chambers <Jason.Chambers (at) geosoft.com>
- Date: Wed, 19 Sep 2007 16:09:21 -0400
- Accept-language: en-US
- Acceptlanguage: en-US
- References: <5FE94042A3B7764CA4E47D5F670889ED0994E913 (at) reddo.geosoft.com> <5FE94042A3B7764CA4E47D5F670889ED0994E916 (at) reddo.geosoft.com> <5FE94042A3B7764CA4E47D5F670889ED0994E91C (at) reddo.geosoft.com> <200709191558.26372.s_aiello (at) comcast.net>
- Thread-index: Acf699dtC1jfIdu3Sl+kqgDjwHl3JwAALA2A
- Thread-topic: [hobbit] Questions about hobbitd_rrd
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.
85 Richmond St W - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111 ext 344 - Fax: 416.369.9599
-----Original Message-----
From: s_aiello (at) comcast.net [mailto:s_aiello (at) comcast.net]
Sent: September-19-07 3:58 PM
To: hobbit (at) hswn.dk
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
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk