SourceForge has been redesigned. Learn more.

Check interfaces traffic map problem

  • Anonymous

    Anonymous - 2013-02-07

    Hi all,
    I'm using for monitoring my firewall traffic,(,-Stats-and-Bandwidth/check_iftraffic3/details)  but values ​​are wrong on the graph

    i execute : ./ -H -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 !!
    Thanks Tomasz

  • Anonymous

    Anonymous - 2013-02-07

    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

  • Eric

    Eric - 2013-03-19


    It seems that you put fixed units (Mbs) in your map rule:

    inBandwidth=([.\d]+)Mbs outBandwidth=([.\d]+)Mbs

    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

    inBandwidth=([.\d]+)(\w{0,3}) outBandwidth=([.\d]+)(\w{0,3})

    and to compute the right multiplication factor to apply to values.
    (you can see how it is done in default rule)

    • Eric

Log in to post a comment.