Nagios, snmp and check_snmp module

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Nagios, snmp and check_snmp module

Postby woitekd » Fri Mar 10, 2017 1:13 pm

Hi, i have problem with nagios and snmp. I'm testing check_snmp in console and i'm getting error:


./check_snmp -l hmon -x "nJ123456" -X "123456789" -L sha,des -H 176.119.61.219 -O .1.3.6.1.4.1.2021.4.5.0
ERROR: retrieving OID .1.3.6.1.4.1.2021.4.5.0 table: No response from remote host "176.119.61.219".

When i do the same with snmpwalk there are no errors.

snmpwalk -a SHA -x AES -u hmon -A "nJ123456" -X "123456789" -l authPriv 176.119.61.219 .1.3.6.1.4.1.2021.4.5.0

iso.3.6.1.4.1.2021.4.5.0 = INTEGER: 502884

anybody know what is problem?
woitekd
 
Posts: 2
Joined: Thu Mar 09, 2017 7:47 pm

Re: Nagios, snmp and check_snmp module

Postby ssax » Fri Mar 10, 2017 3:45 pm

Please try running this one (I changed des to aes) and let us know the results:

Code: Select all
./check_snmp -l hmon -x "nJ123456" -X "123456789" -L sha,aes -H 176.119.61.219 -O .1.3.6.1.4.1.2021.4.5.0


Thank you
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 2890
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios, snmp and check_snmp module

Postby ssax » Fri Mar 10, 2017 3:50 pm

Sorry, try this one instead:

Code: Select all
./check_snmp -U hmon -A "nJ123456" -a SHA -X "123456789" -x AES -L authPriv -H 176.119.61.219 -P 3 -o .1.3.6.1.4.1.2021.4.5.0
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
ssax
Dreams In Code
 
Posts: 2890
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios, snmp and check_snmp module

Postby woitekd » Fri Mar 10, 2017 5:15 pm

Oh, yes my big mistake, thank you very much ;)

all works great
woitekd
 
Posts: 2
Joined: Thu Mar 09, 2017 7:47 pm

Re: Nagios, snmp and check_snmp module

Postby cdienger » Mon Mar 13, 2017 11:31 am

Glad to hear! Is it okay if we close the thread?
User avatar
cdienger
 
Posts: 359
Joined: Tue Feb 07, 2017 11:26 am


Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 2 guests