Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
broerman
bybroerman, January 17, 2016
--- /usr/local/nagios/libexec-external/check_snmp_cisco_ports_bandwidth.orig 2016-01-18 11:19:52.471432283 +0100
+++ /usr/local/nagios/libexec-external/check_snmp_cisco_ports_bandwidth 2016-01-18 11:20:54.836569707 +0100
@@ -135,8 +135,8 @@
continue
fi
- inBitRate=$( echo "$line" | awk '{print $5}' )
- outBitRate=$( echo "$line" | awk '{print $6}' )
+ inBitRate=$( echo "$line" | awk '{print $6}' )
+ outBitRate=$( echo "$line" | awk '{print $7}' )
echo -n "Interface $interfaceNumber In=$( apply_units $inBitRate $pUnits );$( apply_units $warn $pUnits );"
echo -n "$( apply_units $crit $pUnits );0;0
+++ /usr/local/nagios/libexec-external/check_snmp_cisco_ports_bandwidth 2016-01-18 11:20:54.836569707 +0100
@@ -135,8 +135,8 @@
continue
fi
- inBitRate=$( echo "$line" | awk '{print $5}' )
- outBitRate=$( echo "$line" | awk '{print $6}' )
+ inBitRate=$( echo "$line" | awk '{print $6}' )
+ outBitRate=$( echo "$line" | awk '{print $7}' )
echo -n "Interface $interfaceNumber In=$( apply_units $inBitRate $pUnits );$( apply_units $warn $pUnits );"
echo -n "$( apply_units $crit $pUnits );0;0