Xymon Mailing List Archive search

Graphing in Xymon

list Ralph Mitchell
Wed, 4 Sep 2019 14:21:48 -0400
Message-Id: <user-d2d6d2ba5c32@xymon.invalid>

I think maybe your names don't match??

     <ds>

                <name> NetAtoD </name>


not equal to:


        DEF:NetAtoD=ConfigPulls.rrd:AtoD:AVERAGE

        .....

        LINE2:AtoD#00FF00:Net A to D

        .....

        GPRINT:AtoD:LAST:Net A to D \: %5.1lf (cur)


I think it should be:


       DEF:NetAtoD=ConfigPulls.rrd:NetAtoD:AVERAGE

       ....

        LINE2:NetAtoD#00FF00:Net A to D

        ....

        GPRINT:NetAtoD:LAST:Net A to D \: %5.1lf (cur)


and similarly for the other DEF, LINE2 and GPRINT.  It's been a long time
since I messed with graphs too, so I could be completely wrong.


Ralph Mitchell


On Wed, Sep 4, 2019 at 1:59 PM Root, Paul T <user-76fdb6883669@xymon.invalid>
wrote:
I?ve got a new test that I need to graph. It is a simple count of devices
in multiple ?networks?.  This test only runs once a day.   I haven?t done
a graph in xymon in several years, and it?s always a struggle.


This is the input data:


Net_AtoD: 5871
Net_EtoN: 5589
Net_OtoZ_1to9: 5242
Other: 386
InfraGen: 12
InfraSec: 25


The data comes in fine. And I get a good rrd file (all 6 networks are in
there and look the same as this, except obviously the last_ds and value
values:

      <ds>

                <name> NetAtoD </name>

                <type> GAUGE </type>

                <minimal_heartbeat> 600 </minimal_heartbeat>

                <min> NaN </min>

                <max> NaN </max>


                <!-- PDP Status -->

                <last_ds> 5871 </last_ds>

                <value> 5.8710000000e+04 </value>

                <unknown_sec> 267 </unknown_sec>

        </ds>


I have multiple xymon servers, and I share most of the config with an
include line in xymonserver.cfg:


/etc/xymon/xymonserver-common.cfg:TEST2RRD+=",proc-mem-cfgmgrd=ncv,ucf=ncv,ConfigPulls=ncv"


/etc/xymon/xymonserver-common.cfg:GRAPHS+=",vmwarevms,hpnasnaphost,ucf,ConfigPulls"

/etc/xymon/xymonserver-common.cfg:NCV_ConfigPulls="*:GAUGE"


I?ve restarted a few times.


I put the graph config in its own file /etc/xymon/graph.d/ConfigPulls.cfg

[ConfigPulls]

        TITLE NCM Config PUlls

        YAXIS Number of Devices

        DEF:NetAtoD=ConfigPulls.rrd:AtoD:AVERAGE

        DEF:NetEtoN=ConfigPulls.rrd:EtoN:AVERAGE

        DEF:NetOtoZ=ConfigPulls.rrd:OtoZ:AVERAGE

        DEF:Other=ConfigPUlls.rrd:Other:AVERAGE

        DEF:InfraGen=ConfigPUlls.rrd:InfraGen:AVERAGE

        DEF:InfraSec=ConfigPUlls.rrd:InfraSec:AVERAGE

        LINE2:AtoD#00FF00:Net A to D

        LINE2:EtoN#00CCCC:Net E to N

        LINE2:OtoZ#FFCC00:Net O to Z & 1 to 9

        LINE2:Government#FF0000:Government

        LINE2:InfraGen#FFFF00:Infrastructure General

        LINE2:InfraSec#FFFFCC:Infrastructure Secure

        COMMENT:\n

        GPRINT:AtoD:LAST:Net A to D \: %5.1lf (cur)

        GPRINT:AtoD:MAX: \: %5.1lf (max)

        GPRINT:AtoD:MIN: \: %5.1lf (min)

        GPRINT:EtoN:AVERAGE: \: %5.1lf (avg)\n

        GPRINT:EtoN:LAST:Net E to N \: %5.1lf (cur)

        GPRINT:EtoN:MAX: \: %5.1lf (max)

        GPRINT:EtoN:MIN: \: %5.1lf (min)

        GPRINT:EtoN:AVERAGE: \: %5.1lf (avg)\n

        GPRINT:OtoZ:LAST:Net 0 to Z \: %5.1lf (cur)

        GPRINT:OtoZ:MAX: \: %5.1lf (max)

        GPRINT:OtoZ:MIN: \: %5.1lf (min)

        GPRINT:OtoZ:AVERAGE: \: %5.1lf (avg)\n

        GPRINT:Government:LAST:Government \: %5.1lf (cur)

        GPRINT:Government:MAX: \: %5.1lf (max)

        GPRINT:Government:MIN: \: %5.1lf (min)

        GPRINT:Government:AVERAGE: \: %5.1lf (avg)\n

        GPRINT:InfraGen:LAST:Infrastructure General \: %5.1lf (cur)

        GPRINT:InfraGen:MAX: \: %5.1lf (max)

        GPRINT:InfraGen:MIN: \: %5.1lf (min)

        GPRINT:InfraGen:AVERAGE: \: %5.1lf (avg)\n

        GPRINT:InfraSec:LAST:Infrastructure Secure \: %5.1lf (cur)

        GPRINT:InfraSec:MAX: \: %5.1lf (max)

        GPRINT:InfraSec:MIN: \: %5.1lf (min)

        GPRINT:InfraSec:AVERAGE: \: %5.1lf (avg)\n


The graph doesn?t show up, just a broken link in both the test and trends
pages.


Any help?


Thanks,

Paul.


Paul Root

Lead Operations Engineer    - IT Managed Services

XXX Commerce Dr

Woodbury, Mn 55125

XXX-XXX-XXXX  user-76fdb6883669@xymon.invalid


This communication is the property of CenturyLink and may contain
confidential or privileged information. Unauthorized use of this
communication is strictly prohibited and may be unlawful. If you have
received this communication in error, please immediately notify the sender
by reply e-mail and destroy all copies of the communication and any
attachments.