check_snmp failure
Posted: Mon Mar 05, 2018 5:40 am
Hi,
I am currently trying to query a gude Power Control Board via SNMP. Not that special yet. But check_snmp just runs into a timeout.
See this:
In the trace I can see this:
If I take the command out of the trace and execute it everything works fine.
Thanks in advance
Sebastian
I am currently trying to query a gude Power Control Board via SNMP. Not that special yet. But check_snmp just runs into a timeout.
See this:
So I tried to execute the shown command:#> check_snmp -H myhost -p 1234 -o iso.3.6.1.4.1.28507.38.1.3.1.2.1.3.12 -C public -P 2c -v
/usr/bin/snmpget -Le -t 10 -r 5 -m ALL -v 2c [authpriv] myhost:1234 iso.3.6.1.4.1.28507.38.1.3.1.2.1.3.12
CRITICAL - Plugin timed out while executing system call
Mhh.. strange. So I looked through the code. I found the execve call where the snmpget command is executed.#> /usr/bin/snmpget -Le -t 10 -r 5 -m ALL -v 2c -c public myhost:1234 iso.3.6.1.4.1.28507.38.1.3.1.2.1.3.12
iso.3.6.1.4.1.28507.38.1.3.1.2.1.3.12 = INTEGER: 1
In the trace I can see this:
It's still stuck there.[pid 13503] execve("/usr/bin/snmpget", ["/usr/bin/snmpget", "-Le", "-t", "10", "-r", "5", "-m", "ALL", "-v", "2c", "-c", "public", "myhost:1234", "iso.3.6.1.4.1.28507.38.1.3.1.2.1.3.12"], [/* 23 vars */]) = 0
If I take the command out of the trace and execute it everything works fine.
I'm really out of ideas how to debug this further.#> /usr/bin/snmpget -Le -t 10 -r 5 -m ALL -v 2c -c public myhost:1234 iso.3.6.1.4.1.28507.38.1.3.1.2.1.3.12
iso.3.6.1.4.1.28507.38.1.3.1.2.1.3.12 = INTEGER: 1
Thanks in advance
Sebastian