Open zxyz opened 6 years ago
Figure out where $speed_real
is set and dump its value with e.g. Data::Dumper
.
I neared it down with a lot of print
statements.
line 728:
- if (defined($o_checkperf) && $int_status == 1) {
+ if (defined($o_checkperf) || defined($o_perfs) && $int_status == 1) {
results in:
./check_snmp_int.pl -2 -C public -H test.example.net -n "Port-channel4" -feS -g
Port-channel43:UP No usable data on file (4 rows) :(1 UP): UNKNOWN | 'Port-channel43_in_octet'=22674709984955c 'Port-channel43_out_octet'=146625280075840c 'Port-channel43_in_error'=0c 'Port-channel43_in_discard'=0c 'Port-channel43_out_error'=0c 'Port-channel43_out_discard'=0c 'Port-channel43_speed_bps'=20000000000
still the "No usable data" problem, but the interface speed is there.
Hello, thanks for maintaining the manubulon plugins!
I've go problems getting values for the interface speed:
As you can see, there is no return value for the speed of the interface. I tried to find the error by myself, but not knowing perl I failed. The OIDs are correct and snmpwalk returns the expected values.
Interestingly the following kinda works, apart from the "No usable data on file" part:
Thanks for any help!