Page 1 of 1

Plugin check_snmp_int.pl

Posted: Thu Aug 20, 2015 8:45 am
by paulol
The following image shows me traffic of the bond0 network. I was copying a file and the server shows me that i was copying 80MB/s (output) and the plugin check_snmp_int.pl shows me 4.6MB/s.

There is something wrong in my command or the plugin have a problem

Re: Plugin check_snmp_int.pl

Posted: Thu Aug 20, 2015 9:19 am
by tgriep
I found this description for the delta option for that check.
-d: delta time
You can put the delta time as an option : the "delta" is the prefered time between two values that the script will use to calculate the average Kbytes/s or error/min. The delta time should (not must) be bigger than the check interval.
Here is an example : Check interval of 2 minutes and delta of 4min

T0 : value 1 : can't calculate usage
T0+2 : value 2 : can't calculate usage
T0+4 : value 3 : usage=(value3-value1)/((T0+4)-T0)
T0+6 : value 4 : usage=(value4-value2)/((T0+6)-T0+2)
(Yes I know TO+4-T0=4, it's just to explain..)
.........

The script will allow 10% less of the delta and 300% more than delta as a correct interval.
For example, with a delta of 5 minutes, the acceptable interval will be between 4'30" and 15 minutes.
The default is 5 minutes and that could explain the output you are seeing.