[mrtg] How can I invert a packet loss graph?

Rob Dover RDOVER at bclc.com
Thu Aug 19 16:05:04 CEST 2010

Thanks Steve.

Option 1 did the trick. Oddly though Option 2 didn't work.



From: Steve Shipway [mailto:s.shipway at auckland.ac.nz] 
Sent: August 10, 2010 3:45 PM
To: Rob Dover; mrtg at lists.oetiker.ch
Subject: Re: [mrtg] How can I invert a packet loss graph?


Since the mrtg-ping-probe plugin returns percentage loss, all you have
to do is 100-x to get percentage success.


There are two ways to do this!


1.       Target[]: 100 - `/usr/bin/mrtg-ping-probe -t 42
-p loss/loss`
This will simply store 100-x (percentage success) in the RRD.  Of course
this means you lose your history.

2.       Since you are using routers2.cgi, you also have the option to
routers2.cgi*Options[]: reverse
This will allow you to keep your history and continue to store
percentage loss, but to display MaxBytes-x.  Probably this is the best
solution for you.


Note that in both cases, you'll need to change your various labels for
the axis and legend.  Also, note that routers2 will recognise the
mrtg-ping-probe plugin and may default to displaying the data as a
floating bar, if you're graphing min/max RTT data.  If this is unwanted,
look at using the routers.cgi*GraphStyle[]:normal directive.




Steve Shipway

ITS Unix Services Design Lead

University of Auckland

Floor 2, 58 Symonds Street

09 3737599 ext 86487


From: mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch
[mailto:mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On
Behalf Of Rob Dover

I have a config that I use for measuring packet loss that I would like
to essentially invert and turn into an availability graph.

The config I have displays an outage in RED. I would like the
availability graph to display in GREEN when pings are successful. 

How would I go about this?



Target[]: `/usr/bin/mrtg-ping-probe -t 42 -p loss/loss`


This email is intended only for the addressee. It may contain confidential or proprietary information that cannot be disclosed without BCLC's permission. If you have received this email in error, please notify the sender immediately and delete the email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20100819/d8f9e972/attachment.htm 

More information about the mrtg mailing list