Xymon Mailing List Archive search

monitoring aggregated network traffic

list Stef Coene
Fri, 14 Oct 2011 19:01:04 +0200
Message-Id: <user-906dd38ef4a5@xymon.invalid>

On Friday 14 October 2011, Scot Kreienkamp wrote:
Yeah, when you wrote that solution like that I was afraid that's what you'd
say.  :)
What you can do is create a subdirectory 'overview1' in the data/rrd directory.  In that directory you can then create symlinks for the data you want to graph.

I use this to graph the memory usage of AIX lpars running on the same hardware box.  So I create a subdirectory 'data/rrd/pSerie1' and in the subdirectory I create symlinks for each server running on that pSerie:
vmstat-server1.rrd -> ../server1/vmstat.rrd
vmstat-server2.rrd -> ../server2/vmstat.rrd
vmstat-server3.rrd -> ../server3/vmstat.rrd

I then added a section to hobbit-graph.cfg to process all 'vmstat-(.*).rrd' files and stack the data on top of each other:

[vmstat-avm-total]
   FNPATTERN vmstat-(.+).rrd
   TITLE Accessed Virtual Memory (Stacked)
   YAXIS Size kB
   -b 1024
   DEF:avmt at RRDIDX@=@RRDFN@:mem_avm:AVERAGE
   CDEF:avm at RRDIDX@=avmt at RRDIDX@,4048,*
   LINE1:avm at RRDIDX@#@COLOR@:@RRDPARAM@:STACK
   GPRINT:avm at RRDIDX@:LAST:AVM  \: %5.1lf%s (cur)
   GPRINT:avm at RRDIDX@:MAX: \: %5.1lf%s (max)
   GPRINT:avm at RRDIDX@:MIN: \: %5.1lf%s (min)
   GPRINT:avm at RRDIDX@:AVERAGE: \: %5.1lf%s (avg)\n

The result is a stacked graph with 1 line per server.

For the graph, the url is something like
hobbitgraph.sh?host=pSerie1&service=vmstat-avm-total&action=menu

I hope this info can help you.


Stef