snmp walk works but snmp get doesnt

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

snmp walk works but snmp get doesnt

Post by benhank »

Ok so I have run the snmp walk wizard:
Capture.PNG
And it worked just fine.
however...

Code: Select all

[root@lkennagiost01 ~]# /usr/local/nagios/libexec/check_snmp -H 172.22.191.190 -C I$ilonpublic -P 2c -o enterprises.12124.2.52.1.5.1
SNMP problem - No data received from host
[update]
I have verified that the receiving server is correct configured to receive snmp queries, my network guys have assured me that there are no issues with our firewalls, I have iptables disabled on my test box, which is polling other devices via snmp.
I just dont get why xi can do a snmpwalk and get the data I need, but the checks that I create with the wizards fail, and running the check from the command line fails.
You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: snmp walk works but snmp get doesnt

Post by tgriep »

Try increasing the timeout for the check_snmp plugin by adding -t 59 to the command and see if that works.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: snmp walk works but snmp get doesnt

Post by tgriep »

Another thing to try is to put single quotes around the community string as it has a $ in it.

Code: Select all

 /usr/local/nagios/libexec/check_snmp -H 172.22.191.190 -C 'I$ilonpublic' -P 2c -o enterprises.12124.2.52.1.5.1
The wizard is escaping and that is why it is working there.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: snmp walk works but snmp get doesnt

Post by benhank »

200w.gif
Another thing to try is to put single quotes around the community string as it has a $ in it.

Code: Select all
/usr/local/nagios/libexec/check_snmp -H 172.22.191.190 -C 'I$ilonpublic' -P 2c -o enterprises.12124.2.52.1.5.1

Capture.PNG
200.gif

THANKS MAN!
You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: snmp walk works but snmp get doesnt

Post by benhank »

you can lock it up WHO00ooooOOOOOO!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked