[Xymon] Graphing in Xymon

Ralph Mitchell ralphmitchell at gmail.com
Thu Sep 5 19:43:41 CEST 2019


I got a two-line graph from the netstat.rrd by doing this:

     rrdtool graph netstat.jpg  \
          "DEF:udpInDatagrams=netstat.rrd:udpInDatagrams:AVERAGE"   \
          "LINE3:udpInDatagrams#00FF00:UDP In Datagrams"   \
          "DEF:udpOutDatagrams=netstat.rrd:udpOutDatagrams:AVERAGE"   \
          "LINE1:udpOutDatagrams#0000FF:UDP Out Datagrams"

The quoted DEF and LINE strings are directly copied from the [netstat1]
config in the graph.cfg file.

Ralph Mitchell


On Thu, Sep 5, 2019 at 12:32 PM Root, Paul T <Paul.Root at centurylink.com>
wrote:

> Well, this didn’t work.
>
>
>
> I’ve removed the file from the /etc/xymon/graph.d directory, and added it
> directly into graphs.cfg.    No help.
>
>
>
> I removed the comment and GPRINT lines, as they are superfluous at this
> time. Still nothing.
>
>
>
> Is there a way to manually create a gif/jpg/whatever with rrdtool to test
> that the data will create a graph?
>
>
>
>
>
> What I have now:
>
> [ConfigPulls]
>
>         TITLE NCM Config Pulls
>
>         YAXIS Number of Devices
>
>         DEF:NetAtoD=ConfigPulls.rrd:NetAtoD:AVERAGE
>
>         DEF:NetEtoN=ConfigPulls.rrd:NetEtoN:AVERAGE
>
>         DEF:NetOtoZ=ConfigPulls.rrd:NetOtoZ:AVERAGE
>
>         DEF:Other=ConfigPulls.rrd:Other:AVERAGE
>
>         DEF:InfraGen=ConfigPulls.rrd:InfraGen:AVERAGE
>
>         DEF:InfraSec=ConfigPulls.rrd:InfraSec:AVERAGE
>
>
>
>
>
>
>
> As I read the how to, the DEF is
>
> DEF:<label you want>=<rrdfile>:<data label in the rrd file:AVERAGE
>
>
>
> So those should be right.
>
>
>
>
>
> *From:* Ralph Mitchell <ralphmitchell at gmail.com>
> *Sent:* Wednesday, September 04, 2019 1:22 PM
> *To:* Root, Paul T <Paul.Root at CenturyLink.com>
> *Cc:* xymon at xymon.com
> *Subject:* Re: [Xymon] Graphing in Xymon
>
>
>
> 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 <Paul.Root at centurylink.com>
> 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
>
> 390 Commerce Dr
>
> Woodbury, Mn 55125
>
> 651-312-5207  paul.root at centurylink.com
>
>
>
> 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.
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190905/ba4a7e0b/attachment.htm>


More information about the Xymon mailing list