[Xymon] custom graph- variable datasets?

Kevin Kelly kkelly at lifetouch.com
Thu Sep 29 17:27:51 CEST 2011


Is there a way to have variable datasets? Meaning that sometimes my
scripts will have 2 datasets and other times I will have 3 datasets.
Currently when sending the 3 items the graph works, but when only 2 the
graph is not there.

 

So my scripts will send one of the following:

data01 : 56

flash01 : 4

redo01 : 1

 

or 

data01 : 56

flash01 : 4

 

 

 

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>

 

 

 

Thanks

 

Kevin

 

 


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
_____________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110929/4cd0ebc1/attachment.html>


More information about the Xymon mailing list