Page 1 of 1

Nagios, snmp and check_snmp module

Posted: Fri Mar 10, 2017 1:13 pm
by woitekd
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?

Re: Nagios, snmp and check_snmp module

Posted: Fri Mar 10, 2017 3:45 pm
by ssax
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

Re: Nagios, snmp and check_snmp module

Posted: Fri Mar 10, 2017 3:50 pm
by ssax
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

Re: Nagios, snmp and check_snmp module

Posted: Fri Mar 10, 2017 5:15 pm
by woitekd
Oh, yes my big mistake, thank you very much ;)

all works great

Re: Nagios, snmp and check_snmp module

Posted: Mon Mar 13, 2017 11:31 am
by cdienger
Glad to hear! Is it okay if we close the thread?