# 19 ------------------------------------------------------------------------ # # Data to graph: Check Network Bandwidth # # Nagios plugin: check_bandwidth3 # # Nagios output: ||OK Out: 1.29Kbps: In: 3.61Kbps|| # # Nagios output: ||OK Bandwidth Out: 458.41bps: In: 2.89Kbps|| # # Use perfdata: out=458.405063291139;2250000;2700000;0;3000000 \ # # in=2958.91139240506;2250000;2700000;0;3000000 # # --------------------------------------------------------------------------- # /perfdata:out=(\d+\.\d+);(\d+);(\d+);(\d+);(\d+) in=(\d+\.\d+)/ and push @s, [ bandwidth, [ 'out', GAUGE, $1 ], [ 'in', GAUGE, $6 ], [ 'sum', GAUGE, $1+$6 ], [ 'warn', GAUGE, $2 ], [ 'crit', GAUGE, $3 ], [ 'max', GAUGE, $5 ], ];