Page 1 of 1

Snmpget and SnmpWalk

Posted: Fri Nov 16, 2018 4:59 pm
by soc-sistemas
Hi team,

i need help with the check_snmp command, i tried make a request to a device and his answer was the following:

[root@NagiosServer:3 libexec]# ./check_snmp -P 2c -H 10.XX.XX.XX -o 1.3.6.1.4.1.8072.1.3.2.3.1.2 -c **************
CRITICAL - Plugin timed out while executing system call


I was reading the help of pluging check_snmp and it indicates that it uses snmpget, but a snmpwalk with the same community and the same ip, the following appears:

[root@NagiosServer:3 libexec]# snmpget -v 2c -c '***********' 10.XX.XX.XX 1.3.6.1.4.1.8072.1.3.2.3.1.2
NET-SNMP-EXTEND-MIB::nsExtendOutputFull = No Such Instance currently exists at this OID

[root@NagiosServer:3 libexec]# snmpwalk -v 2c -c '**********' 10.XX.XX.XX 1.3.6.1.4.1.8072.1.3.2.3.1.2
NET-SNMP-EXTEND-MIB::nsExtendOutputFull."check-ok" = STRING: OK


why is this happening?

Re: Snmpget and SnmpWalk

Posted: Mon Nov 19, 2018 12:39 pm
by cdienger
Do the snmpget or snmpwalk commands take more than 10 seconds to return? Try increasing the timeout the check_snmp plugin uses:

./check_snmp -P 2c -H 10.XX.XX.XX -o 1.3.6.1.4.1.8072.1.3.2.3.1.2 -c ************** -t 30

Re: Snmpget and SnmpWalk

Posted: Mon Nov 19, 2018 12:56 pm
by soc-sistemas
cdienger wrote:Do the snmpget or snmpwalk commands take more than 10 seconds to return? Try increasing the timeout the check_snmp plugin uses:

./check_snmp -P 2c -H 10.XX.XX.XX -o 1.3.6.1.4.1.8072.1.3.2.3.1.2 -c ************** -t 30
I tried but i have the same response:

[root@NagiosServer:0 libexec]# ./check_snmp -P 2c -H 10.XX.XX.XX -o 1.3.6.1.4.1.8072.1.3.2.3.1.2 -c ************* -t 30
CRITICAL - Plugin timed out while executing system call
[root@NagiosServer:0 libexec]# ./check_snmp -P 2c -H 10.XX.XX.XX -o 1.3.6.1.4.1.8072.1.3.2.3.1.2 -c ************* -t 60
CRITICAL - Plugin timed out while executing system call

Re: Snmpget and SnmpWalk

Posted: Mon Nov 19, 2018 2:20 pm
by cdienger
How long does it take for the snmpget and snmpwalk commands to return a result?

I'd like to get a tcpdump taken while you run the snmpget command and the check_snmp command. Run:

yum -y install tcpdump
tcpdump -s 0 -i any host 10.xx.xx.xx -w output.pcap


Let this run while you run the check_snmp command, wait for it to timeout, and then run the snmpget command. Use CTRL+C to stop the trace after getting a result and PM me the output.pcap.