[Xymon] about trends and multigraph

Olivier AUDRY olivier at audry.fr
Tue Sep 11 23:16:33 CEST 2012


hello

I'm reading the code and I love this :). That should be an interesting way.

                        /* 
                         * Some reports (disk) use the number of lines as a rough measure for how many
                         * graphs to build.
                         * What we *really* should do was to scan the RRD directory and count how many
                         * RRD database files are present matching this service - but that is way too
                         * much overhead for something that might be called on every status logged.
                         */


btw : 

I forced this <!-- linecount=6 --> into the status. ( I send the data with the data channel not in the status channel)

system qq/ $ENV{'BB'} $ENV{'BBDISP'} "status $ENV{'MACHINE'}.jvm $color $line $date"/;
system qq/ $ENV{'BB'} $ENV{'BBDISP'} "data $ENV{'MACHINE'}.trends\n$trends"/;

but it's not working as I want.

I need the following value to make it :

&service=jvm&graph_width=576&graph_height=120&first=1&count=1&
&service=jvm&graph_width=576&graph_height=120&first=2&count=1&
&service=jvm&graph_width=576&graph_height=120&first=3&count=1&
&service=jvm&graph_width=576&graph_height=120&first=4&count=1&
&service=jvm&graph_width=576&graph_height=120&first=5&count=1&
&service=jvm&graph_width=576&graph_height=120&first=6&count=1&

but as I can understand in the source code I completely wrong :(

and I got :

&service=jvm&graph_width=576&graph_height=120&first=1&count=3&
&service=jvm&graph_width=576&graph_height=120&first=4&count=3&

----- Mail original -----
De: "Olivier AUDRY" <olivier at audry.fr>
À: "Xymon mailinglist" <xymon at xymon.com>
Envoyé: Mardi 11 Septembre 2012 22:45:02
Objet: [Xymon] about trends and multigraph

hello

I have one rrd by jvm to trend memory usage off the jvm 

-rw-rw-r-- 1 xymon xymon 209480 11 sept. 22:35 jvm.tomcat5-1.rrd
-rw-rw-r-- 1 xymon xymon 209480 11 sept. 22:35 jvm.tomcat5-2.rrd
-rw-rw-r-- 1 xymon xymon 209480 11 sept. 22:35 jvm.tomcat5-3.rrd
-rw-rw-r-- 1 xymon xymon 209480 11 sept. 22:35 jvm.tomcat5-4.rrd
-rw-rw-r-- 1 xymon xymon 209480 11 sept. 22:35 jvm.tomcat6-1.rrd
-rw-rw-r-- 1 xymon xymon 209480 11 sept. 22:35 jvm.tomcat6-2.rrd

the graphs def :

[jvm]
        FNPATTERN jvm.(.*).rrd
        TITLE Garbage Collection
        YAXIS Bytes
        DEF:EC at RRDIDX@=@RRDFN@:EC:AVERAGE
        DEF:EU at RRDIDX@=@RRDFN@:EU:AVERAGE
        DEF:OC at RRDIDX@=@RRDFN@:OC:AVERAGE
        DEF:OU at RRDIDX@=@RRDFN@:OU:AVERAGE
        DEF:PC at RRDIDX@=@RRDFN@:PC:AVERAGE
        DEF:PU at RRDIDX@=@RRDFN@:PU:AVERAGE
        DEF:GCAP at RRDIDX@=@RRDFN@:GCAP:AVERAGE
        LINE1:EC at RRDIDX@#@COLOR@:@RRDPARAM@ Current eden space capacity.\n
        GPRINT:EC at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:EC at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:EC at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:EC at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
        LINE1:EU at RRDIDX@#@COLOR@:@RRDPARAM@ Eden space utilization.\n
        GPRINT:EU at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:EU at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:EU at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:EU at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
        LINE1:OC at RRDIDX@#@COLOR@:@RRDPARAM@ Current old space capacity.\n
        GPRINT:OC at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:OC at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:OC at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:OC at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
        LINE1:OU at RRDIDX@#@COLOR@:@RRDPARAM@ Old space utilization.\n
        GPRINT:OU at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:OU at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:OU at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:OU at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
        LINE1:PC at RRDIDX@#@COLOR@:@RRDPARAM@ Current permanent space capacity.\n
        GPRINT:PC at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:PC at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:PC at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:PC at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n
        LINE1:PU at RRDIDX@#@COLOR@:@RRDPARAM@ Permanent space utilization.\n
        GPRINT:PU at RRDIDX@:LAST: \: %5.1lf (cur)
        GPRINT:PU at RRDIDX@:MAX: \: %5.1lf (max)
        GPRINT:PU at RRDIDX@:MIN: \: %5.1lf (min)
        GPRINT:PU at RRDIDX@:AVERAGE: \: %5.1lf (avg)\n

I got the trends in the jvm column and in the trends column but the I have all the information in the same graph => unreadable.
So I had the jvm value to the CGI_SVC_OPTS.

CGI_SVC_OPTS="--env=$XYMONENV --no-svcid --history=top --multigraphs=jvm,disk,inode,qtree,if_load,if_err,if_col,vip-bandwith,diskstats"

On the column jvm I got the graph for the first rrd but not for the others. If I tweak the url with the right value for first and count
I can find the graph for the other rrd.

I suspect the value in the html <!-- linecount=1 --> should not be at 1 but I don't understand how this is set.

Any help would be much appreciated :)

oau

_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon



More information about the Xymon mailing list