[mrtg] Graphing IO Wait Times, with 4 samples.

Steve Shipway s.shipway at auckland.ac.nz
Fri Aug 24 01:47:30 CEST 2007


MRTG stores two (and exactly two) metrics per Target.

 

In order to get four metrics on one graph, you will need to collect the
other 2 metrics in a separate Target, and then combine them into a
separate graph.

 

First, define a second Target that calls a different script which
returns the second 2 values and graphs them.. Then, you will have one
graph showing the 2,3sec times, and another graph showing the 4,5 sec
times.

 

If you use RRDTool as your backen, you can use routers2 as the frontend.
This allows you to define a userdefined summary graph over the two
targets using the routers.cgi*Graph directive, and you can get all four
lines on one graph (along with an average and total as well, if you so
desire).

 

Other packages also exist that allow you to achieve this, although you
might need more work.

 

Steve

 

 

I want to change it to this...

 top -b -n5 |grep "wa,"|awk '{print $10}'|awk '{sub(/%/, "");print}'|awk
'{sum = $1 * 100; print sum}'|sed '1d'
320
170
230
40

 

and graph all four values on the same graph,

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20070824/4f77b476/attachment.html 


More information about the mrtg mailing list