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)\n
There 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
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
On Tue, Apr 25, 2006 at 03:13:59PM +0200, Maxeiner, Christian wrote:
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)\n
There 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".
This points at some problem with generating the graph from the RRD, using the definitions you've put into hobbitgraph.cfg. But your definition looks sane enough ...
One way of debugging this is to run the hobbitgraph.sh script "by hand" and see what error-messages show up. You do it like this (all on one long line):
QUERY_STRING="host=voodoo.hswn.dk&service=ncv:roomtemp&graph=hourly&action=view" REQUEST_METHOD=GET SCRIPT_NAME="" REQUEST_URI="" ~hobbit/cgi-bin/hobbitgraph.sh
Replace the "host=..." with the name of your host. What does that say ?
Regards, Henrik
participants (3)
-
christian.maxeiner@usd.de
-
gmbfly98@gmail.com
-
henrik@hswn.dk