[Xymon] More info about GRAPHS, ::1 and maxgraphs

Joel Carnat joel at carnat.net
Wed Aug 8 18:39:43 CEST 2012


Hi,

I probably have mis-understood but I get weird rendering using "::n" in xymonserver.cfg's GRAPHS directive.

I have 6 RRD files, containing a single "temp" value (meaning temperature for that particular disk).
I have a graph definition that goes:
[snmp_disktemp]
        FNPATTERN ^snmp_disktemp.(.+).rrd
        TITLE Disk Temperature
        YAXIS Deg Celcius
        -l 0
        -E
        DEF:temp at RRDIDX@=@RRDFN@:temp:AVERAGE
        COMMENT:
        COMMENT: Cur\:
        COMMENT:Min\:
        COMMENT:Avg\:
        COMMENT:Max\:  \j
        LINE:temp at RRDIDX@#@COLOR@:disk at RRDIDX@ (@RRDPARAM@)
        GPRINT:temp at RRDIDX@:LAST:%4.0lf°C
        GPRINT:temp at RRDIDX@:MIN:%4.0lf°C
        GPRINT:temp at RRDIDX@:AVERAGE:%4.0lf°C
        GPRINT:temp at RRDIDX@:MAX:%4.0lf°C\l

The whole thing monitors disks temperature from a NAS ; there are 6 disks inside.

In "xymonserver.cfg":
- if I set GRAPHS="(...),snmp_disktemp,(...)", I get 2 graphs with 3 disks in each graph;
- if I set GRAPHS="(...),snmp_disktemp::1,(...)", I get 6 graphs with 1 disk in each graph;
- if I set GRAPHS="(...),snmp_disktemp::2,(...)", I get 3 graphs with 2 disk in each graph;
- if I set GRAPHS="(...),snmp_disktemp::3,(...)", I get 2 graphs with 3 disk in each graph;
- if I set GRAPHS="(...),snmp_disktemp::4,(...)", I get 2 graphs with 3 disk in each graph;
- if I set GRAPHS="(...),snmp_disktemp::5,(...)", I get 2 graphs with 3 disk in each graph;
- if I set GRAPHS="(...),snmp_disktemp::6,(...)", I get 1 graphs with 6 disk in each graph;

If I play with the "&count" parameter of the "showgraph.sh" Web script, the generated graph can have from 1 to 6 disks per graph according to the "count" value. This seem to be independent from the "::x" I set.

In "xymon-4.3.9/lib/xymonrrd.c", I found "step = (graphdef->maxgraphs ? graphdef->maxgraphs : 5);" but didn't find where it could be (have been) modified in my cfg files ; to match that "3" default.

I have the same kind of weirdness with another set of data (5 RRD files with in/out network values in it).
"::1" renders 5 graphs * 1 dataset, "::2" renders 5g*1d, "::3" renders 2g*2d+1g*1d,"::4" renders 2g*2d+1g*1d, "::5" renders 1g*5d.

I though "::x" meant "group by x with a default of maxgraphs" but I seem to be wrong. Or there is something not working properly. Can anyone enlighten me?

TIA,
	Jo


More information about the Xymon mailing list