[Xymon] Own RRD graph

Hultström Jonas jonas.hultstrom at scania.com
Tue Apr 23 08:33:32 CEST 2019


Hi,
I try to create a custom graph in xymon.
I have  process which returns lines like:
server1: 8 processes
.
serverX: 4 processes

There are different numbers of line for different hosts.
I want to have these numbers in a graph, so firstly I defined in xymonserver.cfg:
TEST2RRD=..., sapprocs=ncv"
SPLITNCV_sapprocs="server:GAUGE"

Then in graphs.cfg:
[sapprocs]
        FNPATTERN ^sapprocs(.*).rrd
        TITLE Processes
        YAXIS Processes
        DEF:p at RRDIDX@=@RRDFN@:lambda:AVERAGE
        LINE1: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


I get a graph, but for some reason it doesn't look like I want. The values below the graph ( cur, max, min, avg) are all 0.0.
When I do a rrdtool dump on one of the rrd files, I get the type is "DERIVE" and not GAUGE. The values in "last_ds" are correct.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">
<!-- Round Robin Database Dump -->
<rrd>
        <version>0003</version>
        <step>300</step> <!-- Seconds -->
        <lastupdate>1556000353</lastupdate> <!-- 2019-04-23 08:19:13 CEST -->
        <ds>
                <name> lambda </name>
                <type> DERIVE </type>
                <minimal_heartbeat>600</minimal_heartbeat>
                <min>NaN</min>
                <max>NaN</max>

                <!-- PDP Status -->
                <last_ds>1</last_ds>
                <value>-2.5215946844e+00</value>
                <unknown_sec> 0 </unknown_sec>
        </ds>

What did I do wrong? Or isn't this possible? In the end I would like to have these values "stacked" in the graph...

Thanks!
Jonas


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


More information about the Xymon mailing list