Page 1 of 1

SNMP interface rate

Posted: Sat Sep 23, 2017 7:38 am
by eltrasimaco
Hi, i'm trying to get average rates from in-out ports in cisco devices. They give a counter (total number of bytes in/out); to get the average rate, read in_port, sleep 10 seconds, read it again, substract both numbers, divide by 10 giving rate.
The scripts I have seen in nagios exchange (couple of check_iptraffic), sleep 10 seconds, getting the exec agent stuck.
Any better way to accomplish this?

Re: SNMP interface rate

Posted: Mon Sep 25, 2017 10:53 am
by scottwilkerson
eltrasimaco wrote:Any better way to accomplish this?
Yes. Use the Network Switch/Router Wizard. This calculated the average rate in 5 minute increments automatically as well as creating graphs and reports.