Xymon Mailing List Archive search

Need help getting multi-process graphs (Metrics Report) working

list Henrik Størner
Tue, 1 May 2007 22:02:06 +0200
Message-Id: <user-3f0ed80db35c@xymon.invalid>

Hi Charles,

didn't you get the mail I sent you friday ? Here is it again:

!Date: Fri, 27 Apr 2007 13:05:55 +0200
!From: Henrik Stoerner <user-ce4a2c883f75@xymon.invalid>
!Subject: Re: Quick questions about multi-host graphs
!To: Charles Jones <address snipped>
!
!The hobbitgraph code currently cannot handle the combination of multiple
!hosts and multiple files for one host. So when you define a multi-host
!graph, you must use an FNPATTERN which matches a single file.
!
!I haven't figured out a sensible way of presenting multiple graphs for
!multiple hosts in one image - hence this restriction. If you have any
!ideas on how this can be done, let me know. The images get awfully
!crowded very quickly, and difficult to interpret.
!
!
!Regards,
!Henrik


On Tue, May 01, 2007 at 11:38:47AM -0700, Charles Jones wrote:
I'm trying to make multi-host graphs out of the following rrd's:

[hobbit at mon rrd]$ find . -name processes\* |egrep 'web-12|web-13'
./web-12/processes.Apache_app1.rrd
./web-12/processes.Apache_main.rrd
./web-12/processes.Apache_app2.rrd
./web-12/processes.Apache_app4.rrd
./web-12/processes.Apache_app3.rrd
./web-12/processes.Apache_app3.rrd
./web-13/processes.Apache_app1.rrd
./web-13/processes.Apache_main.rrd
./web-13/processes.Apache_app2.rrd
./web-13/processes.Apache_app4.rrd
./web-13/processes.Apache_app3.rrd
./web-13/processes.Apache_app3.rrd

The rrds are simple process counts with "count" as the DS:
[hobbit at mon rrd]$ rrdtool dump ./web-12/processes.Apache_app1.rrd |grep name
               <name> count </name>

Here is my hobbitgraph.cfg definition:

[processes-multi]
       FNPATTERN processes.(.+).rrd
       TITLE Multi-host Process counts
       YAXIS #
       DEF:cnt at RRDIDX@=@RRDFN@:count:AVERAGE
       -l 0 -A
       LINE2:cnt at RRDIDX@#@COLOR@:@RRDPARAM@
       GPRINT:cnt at RRDIDX@:LAST: \: %10.1lf (cur)
       GPRINT:cnt at RRDIDX@:MAX: \: %10.1lf (max)
       GPRINT:cnt at RRDIDX@:MIN: \: %10.1lf (min)
       GPRINT:cnt at RRDIDX@:AVERAGE: \: %10.1lf (avg)\n

This looks to me like it should work, at least assuming that there are 
the same number of .rrd per host (there are), but I'm getting a broken 
graph image when I try to do a metrics report for multi-host processes 
counts.  I have found that if I do a metrics report on a SINGLE host, 
the graph displays properly.  Any idea what could be wrong?