Xymon Mailing List Archive search

NCV Graph not showing up

5 messages in this thread

list Christian Maxeiner · Tue, 25 Apr 2006 15:13:59 +0200 ·
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
list Gary B. · Tue, 25 Apr 2006 17:38:11 -0400 ·
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).
quoted from Christian Maxeiner


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

list Christian Maxeiner · Wed, 26 Apr 2006 09:48:34 +0200 ·
 
I tried that without success. Anyway this makes no sense because the
test name is "roomtemp", "Temperature" is just the value. 

My RRD-File seems to be ok. The problem seems to be in displaying the
graph. Is there a way to debug this? There are no error messages in the
logfiles.
quoted from Gary B.


	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)\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
list Henrik Størner · Wed, 26 Apr 2006 12:15:56 +0200 ·
quoted from Christian Maxeiner
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
list Christian Maxeiner · Thu, 27 Apr 2006 14:46:36 +0200 ·
Henrik,

thank you for that tip. The problem was in hobbitgraph.cfg. I copied another section within the file and forgot to change "threads" to "temp". It all works know.

Thanks a lot. Chris
quoted from Henrik Størner

-----Ursprüngliche Nachricht-----
Von: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Gesendet: Mittwoch, 26. April 2006 12:16
An: user-ae9b8668bcde@xymon.invalid
Betreff: Re: [hobbit] NCV Graph not showing up

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=h
ourly&action=view" REQUEST_METHOD=GET SCRIPT_NAME="" REQUEST_URI="" ~hobbit/cgi-bin/hobbitgraph.sh 
quoted from Henrik Størner
Replace the "host=..." with the name of your host. What does that say ?


Regards,
Henrik