Nagios, snmp and check_snmp module

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
woitekd
Posts: 2
Joined: Thu Mar 09, 2017 7:47 pm

Nagios, snmp and check_snmp module

Post 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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios, snmp and check_snmp module

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios, snmp and check_snmp module

Post 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
woitekd
Posts: 2
Joined: Thu Mar 09, 2017 7:47 pm

Re: Nagios, snmp and check_snmp module

Post by woitekd »

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

all works great
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios, snmp and check_snmp module

Post by cdienger »

Glad to hear! Is it okay if we close the thread?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked