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
jonas.hultstrom writes:
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 xymonserve= r.cfg: TEST2RRD=3D..., sapprocs=3Dncv" SPLITNCV_sapprocs=3D"server:GAUGE"
I assume the "=3D" is something coming from your mail reader. It should obviously be "=", not "=3D".
The problem is that you are sending "server1", "server2", etc. but you are telling RRD to only import "server" as type GAUGE, which means everything else is type DERIVE. What you actually want is:
SPLITNCV_sapprocs="*:GAUGE"
Which will store all datasets from sapprocs as type GAUGE. See the xymond_rrd manpage for details.
Hi, The "star" did it 😊
Not sure what the 3D came from, maybe cut/paste/mail...
Thanks for your help!
Jonas
-----Ursprungligt meddelande----- Från: Xymon <xymon-bounces at xymon.com> För Michael T Pins Skickat: den 23 april 2019 17:42 Till: xymon at xymon.com Ämne: Re: [Xymon] Own RRD graph
jonas.hultstrom writes:
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 xymonserve= r.cfg: TEST2RRD=3D..., sapprocs=3Dncv" SPLITNCV_sapprocs=3D"server:GAUGE"
I assume the "=3D" is something coming from your mail reader. It should obviously be "=", not "=3D".
The problem is that you are sending "server1", "server2", etc. but you are telling RRD to only import "server" as type GAUGE, which means everything else is type DERIVE. What you actually want is:
SPLITNCV_sapprocs="*:GAUGE"
Which will store all datasets from sapprocs as type GAUGE. See the xymond_rrd manpage for details.
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (2)
-
jonas.hultstrom@scania.com
-
mtpins@nndev.org