Try replacing "roomtemp" in hobbitserver.cfg with "Temperature". I'm not sure if that makes a difference or not, though. Also, make sure the script doesn't generate any other text besides "Temperature: <value>"... I had a script that output some non-value text before the actual text, which was causing NCV to try to parse that into a number (and thus "NaN" - Not a Number).
Hi all,
I have just tried to set up a custom NCV graph to monitor the room temperature.
An external script generates a status page with the following output (example):
Temperature: 22.92
I have added the following entries to my hobbitserver.cfg:
TEST2RRD="....,roomtemp=ncv"
NCV_roomtemp="Temperature:GAUGE"
GRAPHS="...,roomtemp,ncv"
My roomtemp.rrd File has been created and updates regularly. Output of rrdtool dump:
<rrd> <version> 0001 </version> <step> 300 </step> <!-- Seconds --> <lastupdate> 1145970097 </lastupdate> <!-- 2006-04-25 15:01:37 METDST -->
<ds> <name> Temperature </name> <type> GAUGE </type> <minimal_heartbeat> 600 </minimal_heartbeat> <min> 0.0000000000e+00 </min> <max> NaN </max> <!-- PDP Status --> <last_ds> UNKN </last_ds> <value> 2.1708600000e+03 </value> <unknown_sec> 0 </unknown_sec> </ds>After that, I have added the following to my hobbitgraph.cfg:
[roomtemp]
TITLE Server Room Temperature YAXIS degrees DEF:temp=roomtemp.rrd:Temperature:AVERAGE LINE2:temp#FF0000:Room Temperature COMMENT:\n GPRINT:threads:LAST: \: %5.1lf (cur) GPRINT:threads:MAX: \: %5.1lf (max) GPRINT:threads:MIN: \: %5.1lf (min) GPRINT:threads:AVERAGE: \: %5.1lf (avg)\nThere is no graph showing up on status page nor on the trends page. On the status page there is only a link "hobbit graph ncv:roomtemp" and on the trends page only a link "hobbit graph roomtemp".
What am I doing wrong? Do I have to configure other things than these?
Thank you in advacne for answering.
Chris
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk