using NCV
list Joshua Krause
I am currently using ncv to graph some of my cisco switches temperature.
And would like to use it to graph some of my DC Power Plant and UPS Temps.
The cisco switch columns are called temps and the dc power plant and upss
columns are called temp. The cisco switches are working but the dc power
plants and upss arent. I have put 2 entries into the hobbit-server.cfg:
TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,di
g=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,ma
ilq,nmailq=ma
q,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,procs=proces
ses,ports,clock,lines,if_load=devmon,temp=ncv,temps=ncv,processor=ncv"
NCV_temps="TEMP:GAUGE"
NCV_temp="*:GAUGE"
And here is what my hobbitgraph.cfg looks like:
[temp]
TITLE Temperature
YAXIS Celsius
DEF:in at RRDIDX@=temp.rrd:TEMP:AVERAGE
AREA:in at RRDIDX@#00CC00:@RRDPARAM@ Temperature
GPRINT:in at RRDIDX@:LAST: %5.1lf %s (cur)
GPRINT:in at RRDIDX@:MAX: %5.1lf %s (max)
GPRINT:in at RRDIDX@:MIN: %5.1lf %s (min)
GPRINT:in at RRDIDX@:AVERAGE: %5.1lf %s (avg)\n
[temps]
TITLE Temperature
YAXIS Celsius
DEF:in at RRDIDX@=temps.rrd:TEMP:AVERAGE
AREA:in at RRDIDX@#00CC00:@RRDPARAM@ Temperature
GPRINT:in at RRDIDX@:LAST: %5.1lf %s (cur)
GPRINT:in at RRDIDX@:MAX: %5.1lf %s (max)
GPRINT:in at RRDIDX@:MIN: %5.1lf %s (min)
GPRINT:in at RRDIDX@:AVERAGE: %5.1lf %s (avg)\n
And here is what I have in my DC Power Plant message file for devmon:
<!--
TEMP: {temp}
-->
{temp.color} Interal Temperature: {temp}°C ({tempF}°F)
And here is what I have in my UPSs message file for devmon:
<!--
TEMPA: {battTempA}
TEMPB: {battTempB}
-->
{battTempA.color} Battery Temperature: {battTempA}°C ({battTempAF}°F)
{battTempB.color} Transformer Temperature: {battTempB}°C ({battTempBF}°F)
I dont know if that is the proper way to use ncv for multiple values
Any ideas on why it isnt graphing.
-Josh
list Ralph Mitchell
On Sat, May 24, 2008 at 7:23 AM, Joshua Krause <user-41d3365fe380@xymon.invalid>
▸
wrote:
I am currently using ncv to graph some of my cisco switches temperature. And would like to use it to graph some of my DC Power Plant and UPS Temps. The cisco switch columns are called "temps" and the dc power plant and ups's columns are called "temp". The cisco switches are working but the dc power plants and ups's aren't. I have put 2 entries into the hobbit-server.cfg:
TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,mailq,nmailq=ma
q,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,procs=processes,ports,clock,lines,if_load=devmon,
*temp=ncv,temps=ncv*,processor=ncv"
*NCV_temps="TEMP:GAUGE"*
*NCV_temp="*:GAUGE"*
Are you sure that asterisk is OK?? You can check the rrd to see if data is
being recorded:
rrdtool dump data/rrd/<hostname>/temp.rrd
or something similar.
Ralph Mitchell
list Joshua Krause
Well I had it as "TEMP:GAUGE" and wasn't getting anything either. So I saw on another post where someone had "*:GAUGE" and decided to try that. Still not getting anything though. I am not even getting a temp.rrd file created. -Josh
▸
From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid]
Sent: Saturday, May 24, 2008 10:26 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] using NCV
On Sat, May 24, 2008 at 7:23 AM, Joshua Krause <user-41d3365fe380@xymon.invalid>
wrote:
I am currently using ncv to graph some of my cisco switches temperature.
And would like to use it to graph some of my DC Power Plant and UPS Temps.
The cisco switch columns are called "temps" and the dc power plant and ups's
columns are called "temp". The cisco switches are working but the dc power
plants and ups's aren't. I have put 2 entries into the hobbit-server.cfg:
TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,di
g=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,ma
ilq,nmailq=ma
q,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,procs=proces
ses,ports,clock,lines,if_load=devmon,temp=ncv,temps=ncv,processor=ncv"
NCV_temps="TEMP:GAUGE"
NCV_temp="*:GAUGE"
Are you sure that asterisk is OK?? You can check the rrd to see if data is
being recorded:
rrdtool dump data/rrd/<hostname>/temp.rrd
or something similar.
Ralph Mitchell
list Phil Wild
Looking at what you get from devmon, you also need to cater for TEMPA and TEMPB. I just want to confirm that the column headings for these are actually displayed as temp and temps. Is this correct? Can I ask you to test something? It may be that the data you are sending through is confusing the ncv code. From a command line on a host with hobbit installed, fake a message up to the server with some dummy data. Something like ..... $BB $BBDISP "status $MACHINE.$TEST green `date` TEMP: 55 " After you run this, check that hobbit displays this data within the gui. Then check that an rrd has been created? If you don't get an rrd, then it is somewhere in the ncv configuration. Cheers Phil 2008/5/24 Joshua Krause <user-41d3365fe380@xymon.invalid>:
▸
Well I had it as "TEMP:GAUGE" and wasn't getting anything either. So I
saw on another post where someone had "*:GAUGE" and decided to try that.
Still not getting anything though. I am not even getting a temp.rrd file
created.
-Josh
*From:* Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid]
*Sent:* Saturday, May 24, 2008 10:26 AM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] using NCV
On Sat, May 24, 2008 at 7:23 AM, Joshua Krause <user-41d3365fe380@xymon.invalid>
wrote:
I am currently using ncv to graph some of my cisco switches temperature.
And would like to use it to graph some of my DC Power Plant and UPS Temps.
The cisco switch columns are called "temps" and the dc power plant and ups's
columns are called "temp". The cisco switches are working but the dc power
plants and ups's aren't. I have put 2 entries into the hobbit-server.cfg:
TEST2RRD="cpu=la,disk,inode,qtree,memory,$PINGCOLUMN=tcp,http=tcp,dns=tcp,dig=tcp,time=ntpstat,vmstat,iostat,netstat,temperature,apache,bind,sendmail,mailq,nmailq=ma
q,socks,bea,iishealth,citrix,bbgen,bbtest,bbproxy,hobbitd,files,procs=processes,ports,clock,lines,if_load=devmon,
*temp=ncv,temps=ncv*,processor=ncv"
*NCV_temps="TEMP:GAUGE"*
*NCV_temp="*:GAUGE"*
Are you sure that asterisk is OK?? You can check the rrd to see if data is
being recorded:
rrdtool dump data/rrd/<hostname>/temp.rrd
or something similar.
Ralph Mitchell
--
Tel: XXXX XXX XXX
Fax: XXXX XXX XXX
email: user-e365c1418192@xymon.invalid