[Xymon] custom graph- variable datasets?

Scot Kreienkamp SKreien at la-z-boy.com
Thu Sep 29 17:39:40 CEST 2011


Kevin,

You need to look at SPLITNCV.  It's quite easy actually, I just changed mine to that yesterday because of the same problem.

Change your NCV_test to SPLITNCV_test.  You can also use wildcards, so you could write it like mine:

SPLITNCV_F5="*:GAUGE"

Here's my graphs config for an example to look at.  BTW, the dataset name will always be lamda no matter the rest of the config, so don't change that.

[F5]
        FNPATTERN ^F5.(.+).rrd
        TITLE Connections from F5
        YAXIS % Number of Connections
        DEF:p at RRDIDX@=@RRDFN@:lambda:AVERAGE
        LINE2:p at RRDIDX@#@COLOR@:@RRDPARAM@
        GPRINT:p at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:p at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:p at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:p at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n



Scot Kreienkamp
skreien at la-z-boy.com

From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Kevin Kelly
Sent: Thursday, September 29, 2011 11:28 AM
To: xymon at xymon.com
Subject: [Xymon] custom graph- variable datasets?

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
_____________________________________________________________________



This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you. 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110929/53f97ca9/attachment.html>


More information about the Xymon mailing list