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

Rob Dover RDOVER at bclc.com
Tue Aug 10 17:08:04 CEST 2010


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?

Here is what I use today for loss.

 

##################################################################

# packet loss

##################################################################

 

routers.cgi*Graph[172.17.24.20.loss]: mygraph nototal noaverage details
noo

routers.cgi*InMenu[172.17.24.20.loss]: no

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

Title[10.20.30.40.loss]: KamPVC-1 Packet Loss Analysis

PageTop[10.20.30.40.loss]: <H1>Packet Loss Analysis</H1>

MaxBytes[10.20.30.40.loss]: 100

AbsMax[10.20.30.40.loss]: 101

WithPeak[10.20.30.40.loss]: ymwd

Options[10.20.30.40.loss]: gauge

SetEnv[10.20.30.40.loss]: MRTG_INT_DESCR="KamPVC-1 Packet Loss"

YLegend[10.20.30.40.loss]: % Packet Loss

ShortLegend[10.20.30.40.loss]: %

Legend1[10.20.30.40.loss]: % Packet Loss

Legend2[10.20.30.40.loss]: % Packet Loss

Legend3[10.20.30.40.loss]: Maximal 5 Minute % Packet Loss

Legend4[10.20.30.40.loss]: Maximal 5 Minute % Packet Loss

LegendI[10.20.30.40.loss]: &nbsp;% loss:

LegendO[10.20.30.40.loss]: &nbsp;% loss:

 

routers.cgi*Mode[mygraph]: generic

routers.cgi*GraphStyle[mygraph]: stack

routers.cgi*Colours[mygraph]: #ff0000 #ff0000 #ff0000 #ff0000

routers.cgi*Title[mygraph]: KamPVC-1 Packet Loss

routers.cgi*ShortDesc[mygraph]: KamPVC-1 Packet Loss

routers.cgi*InSummary[mygraph]: yes

 

#EOF

 

Thanks -Rob-

rdover at bclc.com <mailto:rdover at bclc.com> 



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/20100810/5f9bdf71/attachment-0001.htm 


More information about the mrtg mailing list