Xymon Mailing List Archive search

custom graph not showing up

3 messages in this thread

list Kevin Kelly · Tue, 27 Sep 2011 12:51:34 -0500 ·
I am having trouble with my custom graph showing up.

 
Here are parts of my configuration:

 
Hobbitserver.cfg

TEST2RRD="...,test=ncv"

NCV_test="data01:GAUGE,flash01:GAUGE,redo01:GAUGE"

 
Hobbitgraph.cfg

[test]

        TITLE test 

        YAXIS % Used

        DEF:data=test.rrd:data01:AVERAGE

        DEF:flash=test.rrd:flash01:AVERAGE

        DEF:redo=test.rrd:redo01:AVERAGE

        LINE2:data01#FF0000:data01

        LINE2:flash01#00CCCC:flash01

        LINE2:redo01#00FF00:redo01

        COMMENT:\n

        GPRINT:data:LAST:data01\: %5.1lf%s (cur)

        GPRINT:data:MAX: \: %5.1lf%s (max)

        GPRINT:data:MIN: \: %5.1lf%s (min)

        GPRINT:data:AVERAGE: \: %5.1lf%s (avg)\n

        GPRINT:flash:LAST:flash01\: %5.1lf%s (cur)

        GPRINT:flash:MAX: \: %5.1lf%s (max)

        GPRINT:flash:MIN: \: %5.1lf%s (min)

        GPRINT:flash:AVERAGE: \: %5.1lf%s (avg)\n

        GPRINT:redo:LAST:redo01\: %5.1lf%s (cur)

        GPRINT:redo:MAX: \: %5.1lf%s (max)

        GPRINT:redo:MIN: \: %5.1lf%s (min)

        GPRINT:redo:AVERAGE: \: %5.1lf%s (avg)\n

 
Part of the rrd dump

<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>

        <step> 300 </step> <!-- Seconds -->

        <lastupdate> 1317145277 </lastupdate> <!-- 2011-09-27 12:41:17
CDT -->

 
        <ds>

                <name> data01 </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> NaN </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> 56 </last_ds>

                <value> 4.3120000000e+03 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
        <ds>

                <name> flash01 </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> NaN </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> 4 </last_ds>

                <value> 3.0800000000e+02 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
        <ds>

                <name> redo01 </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> NaN </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> 1 </last_ds>

                <value> 7.7000000000e+01 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
The script send the following to xymon

 
data01 : 56

flash01 : 4

redo01 : 1

 
Can someone tell me what I am missing/

 
Thanks

 
Kevin

 
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Kevin Kelly · Tue, 27 Sep 2011 13:39:16 -0500 ·
Got it working

 
My DEF statements were incorrect.

 
Had:

DEF:data=test.rrd:data01:AVERAGE

DEF:flash=test.rrd:flash01:AVERAGE

DEF:redo=test.rrd:redo01:AVERAGE

 
Needed to be:

DEF:data01=test.rrd:data01:AVERAGE

DEF:flash01=test.rrd:flash01:AVERAGE

DEF:redo01=test.rrd:redo01:AVERAGE

 
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf
Of Kevin Kelly
Sent: Tuesday, September 27, 2011 12:52 PM
To: xymon at xymon.com
Subject: [Xymon] custom graph not showing up
quoted from Kevin Kelly

 
I am having trouble with my custom graph showing up.

 
Here are parts of my configuration:

 
Hobbitserver.cfg

TEST2RRD="...,test=ncv"

NCV_test="data01:GAUGE,flash01:GAUGE,redo01:GAUGE"

 
Hobbitgraph.cfg

[test]

        TITLE test 

        YAXIS % Used

        DEF:data=test.rrd:data01:AVERAGE

        DEF:flash=test.rrd:flash01:AVERAGE

        DEF:redo=test.rrd:redo01:AVERAGE

        LINE2:data01#FF0000:data01

        LINE2:flash01#00CCCC:flash01

        LINE2:redo01#00FF00:redo01

        COMMENT:\n

        GPRINT:data:LAST:data01\: %5.1lf%s (cur)

        GPRINT:data:MAX: \: %5.1lf%s (max)

        GPRINT:data:MIN: \: %5.1lf%s (min)

        GPRINT:data:AVERAGE: \: %5.1lf%s (avg)\n

        GPRINT:flash:LAST:flash01\: %5.1lf%s (cur)

        GPRINT:flash:MAX: \: %5.1lf%s (max)

        GPRINT:flash:MIN: \: %5.1lf%s (min)

        GPRINT:flash:AVERAGE: \: %5.1lf%s (avg)\n

        GPRINT:redo:LAST:redo01\: %5.1lf%s (cur)

        GPRINT:redo:MAX: \: %5.1lf%s (max)

        GPRINT:redo:MIN: \: %5.1lf%s (min)

        GPRINT:redo:AVERAGE: \: %5.1lf%s (avg)\n

 
Part of the rrd dump

<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>

        <step> 300 </step> <!-- Seconds -->

        <lastupdate> 1317145277 </lastupdate> <!-- 2011-09-27 12:41:17
CDT -->

 
        <ds>

                <name> data01 </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> NaN </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> 56 </last_ds>

                <value> 4.3120000000e+03 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
        <ds>

                <name> flash01 </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> NaN </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> 4 </last_ds>

                <value> 3.0800000000e+02 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
        <ds>

                <name> redo01 </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> NaN </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> 1 </last_ds>

                <value> 7.7000000000e+01 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
The script send the following to xymon

 
data01 : 56

flash01 : 4

redo01 : 1

 
Can someone tell me what I am missing/

 
Thanks

 
Kevin

 
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 


This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
list Dan Smith · Tue, 27 Sep 2011 14:40:09 -0400 ·
Looks like you just need to change your LINE2 entries to reflect the defined
name...
Change...

        LINE2:data01#FF0000:data01

        LINE2:flash01#00CCCC:flash01

        LINE2:redo01#00FF00:redo01

to...

        LINE2:data#FF0000:data01

        LINE2:flash#00CCCC:flash01

        LINE2:redo#00FF00:redo01

 
Everything else looks fine.
 
-dan
quoted from Kevin Kelly


From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of
Kevin Kelly

Sent: Tuesday, September 27, 2011 1:52 PM
quoted from Kevin Kelly
To: xymon at xymon.com
Subject: [Xymon] custom graph not showing up


I am having trouble with my custom graph showing up.

 
Here are parts of my configuration:

 
Hobbitserver.cfg

TEST2RRD=".,test=ncv"

NCV_test="data01:GAUGE,flash01:GAUGE,redo01:GAUGE"

 
Hobbitgraph.cfg

[test]

        TITLE test 

        YAXIS % Used

        DEF:data=test.rrd:data01:AVERAGE

        DEF:flash=test.rrd:flash01:AVERAGE

        DEF:redo=test.rrd:redo01:AVERAGE

        LINE2:data01#FF0000:data01

        LINE2:flash01#00CCCC:flash01

        LINE2:redo01#00FF00:redo01

        COMMENT:\n

        GPRINT:data:LAST:data01\: %5.1lf%s (cur)

        GPRINT:data:MAX: \: %5.1lf%s (max)

        GPRINT:data:MIN: \: %5.1lf%s (min)

        GPRINT:data:AVERAGE: \: %5.1lf%s (avg)\n

        GPRINT:flash:LAST:flash01\: %5.1lf%s (cur)

        GPRINT:flash:MAX: \: %5.1lf%s (max)

        GPRINT:flash:MIN: \: %5.1lf%s (min)

        GPRINT:flash:AVERAGE: \: %5.1lf%s (avg)\n

        GPRINT:redo:LAST:redo01\: %5.1lf%s (cur)

        GPRINT:redo:MAX: \: %5.1lf%s (max)

        GPRINT:redo:MIN: \: %5.1lf%s (min)

        GPRINT:redo:AVERAGE: \: %5.1lf%s (avg)\n

 
Part of the rrd dump

<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>

        <step> 300 </step> <!-- Seconds -->

        <lastupdate> 1317145277 </lastupdate> <!-- 2011-09-27 12:41:17 CDT
-->

 
        <ds>

                <name> data01 </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> NaN </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> 56 </last_ds>

                <value> 4.3120000000e+03 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
        <ds>

                <name> flash01 </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> NaN </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> 4 </last_ds>

                <value> 3.0800000000e+02 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
        <ds>

                <name> redo01 </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> NaN </min>

                <max> NaN </max>

 
                <!-- PDP Status -->

                <last_ds> 1 </last_ds>

                <value> 7.7000000000e+01 </value>

                <unknown_sec> 0 </unknown_sec>

        </ds>

 
The script send the following to xymon

 
data01 : 56

flash01 : 4

redo01 : 1

 
Can someone tell me what I am missing/

 
Thanks

 
Kevin

 
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email