Questions about hobbitd_rrd
list Jason Chambers
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/> XX 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: XXX.XXX.XXXX<skype:+14163690111> ext XXX - Fax: XXX.XXX.XXXX
list Sigurður Guðbrandsson
Hi. Spaces are ignored in variable names, so your bladecentervolts would be; NCV_bladecentervolts="Volts:GAUGE" Only A-z and 0-9 are allowed in names, no underscores etc. So basicly your option is to use a special name for each of the voltage you want to monitor in the graph and then rename them in hobbitgraphs.cfg for fancyness. As far as I know about letters in datastream, I think it ignores it and just yanks the value .. you could of course change your script to include a space between the wattage value and the letter W to be on the safe side. and HOW do I know all of this? My first time setup for a custom RRD graph over here aswell ... I can get all the values into RRD files pretty easy, but I just can't seem to get the graphs on the website .... With regards, Sigurður Guðbrandsson Raförninn ehf. Suðurhlíð 35 105 Reykjavik | Iceland user-f6f2e0690a1f@xymon.invalid | www.raforninn.is <http://www.raforninn.is/>; Office: +(XXX) XXX XXXX Mobile: +(XXX) XXX XXXX
▸
From: Jason Chambers [mailto:user-3fa671c0a30d@xymon.invalid] Sent: 19. september 2007 15:21
To: 'user-ae9b8668bcde@xymon.invalid'
Subject: [hobbit] Questions about hobbitd_rrd
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/>; XX 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: XXX.XXX.XXXX <skype:+14163690111> ext XXX - Fax: XXX.XXX.XXXX
list Jason Chambers
Actually, the W is included in the SNMP poll, which is why I'm concerned. Not to mention, the SNMP poll for the fans returns "38% of maximum" which makes me even more concerned on what will happen. Jason Chambers I.T. Helpdesk Associate [cid:image001.jpg at 01C7FAB2.1FA22070] <http://www.geosoft.com/>;
▸
XX 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: XXX.XXX.XXXX<skype:+14163690111> ext XXX - Fax: XXX.XXX.XXXX
▸
From: Sigurður Guðbrandsson [mailto:user-f6f2e0690a1f@xymon.invalid]
Sent: September-19-07 11:37 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Questions about hobbitd_rrd
Hi.
Spaces are ignored in variable names, so your bladecentervolts would be;
NCV_bladecentervolts="Volts:GAUGE"
Only A-z and 0-9 are allowed in names, no underscores etc.
So basicly your option is to use a special name for each of the voltage you want to monitor in the graph and then rename them in hobbitgraphs.cfg for fancyness.
As far as I know about letters in datastream, I think it ignores it and just yanks the value .. you could of course change your script to include a space between the wattage value and the letter W to be on the safe side.
and HOW do I know all of this?
My first time setup for a custom RRD graph over here aswell ... I can get all the values into RRD files pretty easy, but I just can't seem to get the graphs on the website ....
With regards,
Sigurður Guðbrandsson
Raförninn ehf.
Suðurhlíð 35
105 Reykjavik | Icelanduser-f6f2e0690a1f@xymon.invalid<mailto:user-f6f2e0690a1f@xymon.invalid> | www.raforninn.is<http://www.raforninn.is/>;
▸
Office: +(XXX) XXX XXXX
Mobile: +(XXX) XXX XXXX
From: Jason Chambers [mailto:user-3fa671c0a30d@xymon.invalid]
Sent: 19. september 2007 15:21
To: 'user-ae9b8668bcde@xymon.invalid'
Subject: [hobbit] Questions about hobbitd_rrd
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:image002.jpg at 01C7FAB2.1FA22070] <http://www.geosoft.com/>;
▸
XX 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: XXX.XXX.XXXX<skype:+14163690111> ext XXX - Fax: XXX.XXX.XXXX
list Ralph Mitchell
▸
On 9/19/07, Jason Chambers <user-3fa671c0a30d@xymon.invalid> 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
list Jason Chambers
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/>;
▸
XX 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: XXX.XXX.XXXX<skype:+14163690111> ext XXX - Fax: XXX.XXX.XXXX
▸
From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid]
Sent: September-19-07 11:44 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Questions about hobbitd_rrd
On 9/19/07, Jason Chambers <user-3fa671c0a30d@xymon.invalid<mailto:user-3fa671c0a30d@xymon.invalid>> 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
list Quinton Jansen
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/>;
XX 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: XXX.XXX.XXXX <skype:+14163690111> ext 344 - Fax: XXX.XXX.XXXX
list Jason Chambers
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. XX Richmond St W - Toronto, ON, CA - M5H 2C9 - Tel: XXX.XXX.XXXX ext XXX - Fax: XXX.XXX.XXXX
▸
-----Original Message-----
From: Quinton Jansen [mailto:user-a2b6f7d63750@xymon.invalid]
Sent: September-19-07 12:29 PM
To: user-ae9b8668bcde@xymon.invalid
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/>; XX 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: XXX.XXX.XXXX <skype:+14163690111> ext 344 - Fax: XXX.XXX.XXXX
list Jason Chambers
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/>;
▸
XX 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: XXX.XXX.XXXX<skype:+14163690111> ext XXX - Fax: XXX.XXX.XXXX
list S Aiello
▸
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
list Jason Chambers
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