I'm using check_iftraffic3.pl for monitoring my firewall traffic,(http://exchange.nagios.org/directory/Plugins/Network-Connections,-Stats-and-Bandwidth/check_iftraffic3/details) but values are wrong on the graph
i execute : ./check_iftraffic3.pl -H myproxy.domain.it -C public -i 13 -B -b 4 -O 4 -u m and results is :
"Average IN: 1.49Mbs (37.34%), Average OUT: 208.64Kbs (5.09%)<br>Total RX: 14990.86 Mbits, Total TX: 23234.10 Mbits|inUsage=37.34%;85;98 outUsage=5.09%;85;98 inBandwidth=1.49Mbs outBandwidth=208.64Kbs inAbsolut=1964882296 outAbsolut=3045340328" .
values "Average IN and Average OUT" is ok.
Can have these values on the nagiosgraph ? My report shows only "outAbsolute and inAbsolute"
In the file "map" i insert this :
"/perfdata:inUsage=(+)%;(\d+);(\d+) outUsage=(+)%;(\d+);(\d+) inBandwidth=(+)Mbs outBandwidth=(+)Mbs inAbsolut=(\d+) outAbs
and push @s, [ 'data',
but nothing changes !!
I would add.. cat my perflog.log is :
1360254604||gfrw2||WAN||Average IN: 897.52Kbs (21.91%), Average OUT: 74.16Kbs (1.81%)brTotal RX: 16989.67 Mbits, Total TX: 23611.52 Mbits||inUsage=21.91%;85;98 outUsage=1.81%;85;98 inBandwidth=897.52Kbs outBandwidth=74.16Kbs inAbsolut=2226870593 outAbsolut=3094809396
It seems that you put fixed units (Mbs) in your map rule:
That mean that you always expect perfdata with in/out Bandwidth in Mbs, but as you wrote in your second post, your values may be in Kbs or other units so they will not match.
You have to rewrite your rule to catch the unit
and to compute the right multiplication factor to apply to values.
(you can see how it is done in default rule)
Log in to post a comment.