On 31 Dec 2009, at 14:30, Jürgen Meusburger, die meuse.Bezau wrote:
this works:r...@opsview:/usr/local/nagios/libexec# ./check_snmp_linkstatus -H 192.168.10.254 -i -o -I port1 WARNING: Running from command line. This could change statistics for the next run from Nagios OK - port1 (lan) is up, throughput (in/out) 1.17 Kbps/2.2 Kbps, 0%/ 0%|throughput_in=1208b throughput_out=2256ball interface checks ar working as expected.
OK, I think I know what is happening. Can you try the updated file attached.
My guess is that you have a device which is configured as SNMPv2 in Opsview, but is actually setup as an SNMPv1 device.
The check_snmp_linkstatus has some fallback code so that if SNMPv2 fails, it re-connects with SNMPv1. However, the max_msg_size call is done before this SNMPv1 reconnection.
The file attached should set the size correctly.Can you try this, and also specify on the command line the exact version (-v 1 for SNMPv1 and -v 2c for SNMPv2c)?
Ton
check_snmp_linkstatus
Description: Binary data
_______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users
