I'm just looking at the NCV_ stuff with the hobbit_rrd, and have some questions about it (for my first time setup)
I was wondering how it would handle letters in the data stream, such as:
Total: 3520W Reserved: 1223W Used: 1223W Remaining: 2297W
And also, spaces in the data, such as:
+5 Volts: +4.81 Volts
With this look like NCV_bladecentervolts="+5 Volts:GAUGE" ?
Jason Chambers I.T. Helpdesk Associate [cid:image003.jpg at 01C7FAAF.26527F30] <http://www.geosoft.com/> 85 Richmond St W<http://maps.google.com/maps?f=q&hl=en&q=geosoft&sll=43.650833,-79.382853&sspn=0.00708,0.013411&ie=UTF8&om=1&ll=43.653027,-79.382368&spn=0.00708,0.013433&z=17&iwloc=A&iwd=1&cid=43650833,-79382853,2112187895585156655&dtab=0> - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111<skype:+14163690111> ext 344 - Fax: 416.369.9599
On 9/19/07, Jason Chambers <Jason.Chambers at geosoft.com> wrote:
I'm just looking at the NCV_ stuff with the hobbit_rrd, and have some questions about it (for my first time setup)
I was wondering how it would handle letters in the data stream, such as:
Total: 3520W
Reserved: 1223W
Used: 1223W
Remaining: 2297W
And also, spaces in the data, such as:
+5 Volts: +4.81 Volts
With this look like NCV_bladecentervolts="+5 Volts:GAUGE" ?
According to the help page (Hobbit menu -> Help -> Custom Graphs):
note that Hobbit strips off any part of the name that is not a letter
or a number;
I don't know how it would handle your "+5 Volts", but it does strip spaces from everything before the colon to get the label, so
The CPU Temp: 45C
would result in an RRD variable called "TheCPUTemp".
There's an alternative way of doing this, which give you more control. Take a look at the hobbitd_rrd manual page (Hobbit Menu -> Help -> Manual Pages -> hobbitd_rrd. You can specify a script that processes the message to generate the RRD definitions and the data values to store. This allows you much more flexibility when extracting the data from the message.
Ralph Mitchell
Would this work for multiple different datasets off of the same page, or do I need to separate them out?
EG. Put in all the data into the same rrd (temp, voltage, power, fan speed, etc.) then retrieve them one at a time later?
Thanks for all the advice and help guys,
Cheers,
Jason Chambers I.T. Helpdesk Associate [cid:image001.jpg at 01C7FAB7.601F9470] <http://www.geosoft.com/> 85 Richmond St W<http://maps.google.com/maps?f=q&hl=en&q=geosoft&sll=43.650833,-79.382853&sspn=0.00708,0.013411&ie=UTF8&om=1&ll=43.653027,-79.382368&spn=0.00708,0.013433&z=17&iwloc=A&iwd=1&cid=43650833,-79382853,2112187895585156655&dtab=0> - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111<skype:+14163690111> ext 344 - Fax: 416.369.9599
From: Ralph Mitchell [mailto:ralphmitchell at gmail.com] Sent: September-19-07 11:44 AM To: hobbit at hswn.dk Subject: Re: [hobbit] Questions about hobbitd_rrd
On 9/19/07, Jason Chambers <Jason.Chambers at geosoft.com<mailto:Jason.Chambers at geosoft.com>> wrote:
I'm just looking at the NCV_ stuff with the hobbit_rrd, and have some questions about it (for my first time setup)
I was wondering how it would handle letters in the data stream, such as:
Total: 3520W
Reserved: 1223W
Used: 1223W
Remaining: 2297W
And also, spaces in the data, such as:
+5 Volts: +4.81 Volts
With this look like NCV_bladecentervolts="+5 Volts:GAUGE" ?
According to the help page (Hobbit menu -> Help -> Custom Graphs):
note that Hobbit strips off any part of the name that is not a letter or a number;
I don't know how it would handle your "+5 Volts", but it does strip spaces from everything before the colon to get the label, so
The CPU Temp: 45C
would result in an RRD variable called "TheCPUTemp".
There's an alternative way of doing this, which give you more control. Take a look at the hobbitd_rrd manual page (Hobbit Menu -> Help -> Manual Pages -> hobbitd_rrd. You can specify a script that processes the message to generate the RRD definitions and the data values to store. This allows you much more flexibility when extracting the data from the message.
Ralph Mitchell
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...
Jason Chambers I.T. Helpdesk Associate [cid:image002.jpg at 01C7FAD2.76C92B80] <http://www.geosoft.com/> 85 Richmond St W<http://maps.google.com/maps?f=q&hl=en&q=geosoft&sll=43.650833,-79.382853&sspn=0.00708,0.013411&ie=UTF8&om=1&ll=43.653027,-79.382368&spn=0.00708,0.013433&z=17&iwloc=A&iwd=1&cid=43650833,-79382853,2112187895585156655&dtab=0> - Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111<skype:+14163690111> ext 344 - Fax: 416.369.9599
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
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
My experience is that the units (W) and + and spaces will get dropped.
Any chance you can send me a copy of your script to check the blades to save me reinventing the wheel?
Jason Chambers wrote:
I’m just looking at the NCV_ stuff with the hobbit_rrd, and have some questions about it (for my first time setup)
I was wondering how it would handle letters in the data stream, such as:
Total: 3520W
Reserved: 1223W
Used: 1223W
Remaining: 2297W
And also, spaces in the data, such as:
+5 Volts: +4.81 Volts
With this look like NCV_bladecentervolts=”+5 Volts:GAUGE” ?
*Jason Chambers** I.T. Helpdesk Associate * <http://www.geosoft.com/>
- Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111 <skype:+14163690111> ext 344 - Fax: 416.369.9599
Hi Quinton,
It looks like I'm going to have to revise the wheel, and I have yet to test the script to see if it works. So far, I have all tests in 1 little script, but it looks like I'm going to break out the script to be multiple scripts for different test names. Once I figure out how to get the RRD stuff working, I might bundle it up and give it to The Shire.
But now, it looks like this might wait awhile as I just handed to me a bucket load of stuff that needs to be taken care of. I'll keep you posted.
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: Quinton Jansen [mailto:Quinton.Jansen at ec.gc.ca] Sent: September-19-07 12:29 PM To: hobbit at hswn.dk Subject: Re: [hobbit] Questions about hobbitd_rrd
My experience is that the units (W) and + and spaces will get dropped.
Any chance you can send me a copy of your script to check the blades to save me reinventing the wheel?
Jason Chambers wrote:
I'm just looking at the NCV_ stuff with the hobbit_rrd, and have some questions about it (for my first time setup)
I was wondering how it would handle letters in the data stream, such as:
Total: 3520W
Reserved: 1223W
Used: 1223W
Remaining: 2297W
And also, spaces in the data, such as:
+5 Volts: +4.81 Volts
With this look like NCV_bladecentervolts="+5 Volts:GAUGE" ?
*Jason Chambers** I.T. Helpdesk Associate * <http://www.geosoft.com/>
- Toronto, ON, CA - M5H 2C9 - Tel: 416.369.0111 <skype:+14163690111> ext 344 - Fax: 416.369.9599
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (4)
-
Jason.Chambers@geosoft.com
-
Quinton.Jansen@ec.gc.ca
-
ralphmitchell@gmail.com
-
s_aiello@comcast.net