Page 1 of 1

Error while running a snmp command from terminal

Posted: Mon Oct 01, 2012 1:44 pm
by MSPk
Hi,

I'm trying to test if the check_snmp command is working as expected, howver when i run the command i get a message saying SNMP Problem : No data received from host.

Please suggest how I can test if check_snmp.pl command is working as expected.

Re: Error while running a snmp command from terminal

Posted: Mon Oct 01, 2012 2:15 pm
by slansing
Can you post the whole command which you are running from the terminal?

Re: Error while running a snmp command from terminal

Posted: Fri Oct 26, 2012 11:01 am
by MSPk
Hi,
I'm trying to run the below command to check the deadmail count on the lotus notes server and get the following error.

./check_snmp -H ipaddress -o .1.3.6.1.4.1.334.72.1.1.4.1 -C public -m ALL
SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] ipaddress:161 .1.3.6.1.4.1.334.72.1.1.4.1

we are using nagios 2012 and are trying to monitor lotus notes. to begin with we have activated lotus snmp on the domino server and uploaded a copy of the domino.mib file in the nagios xi server using the manage mib option. Please let us know if we have to configure anything else or if their are any pre-requisites to be installed/configured before using snmp checks.

Re: Error while running a snmp command from terminal

Posted: Fri Oct 26, 2012 11:57 am
by MSPk
I get the below response when I run the snmpwalk

snmpwalk -v 2c -c public ipaddress 1.3.6.1.4.1.334.72.1.1.4

SNMPv2-SMI::enterprises.334.72.1.1.4.1.0 = INTEGER: 11
SNMPv2-SMI::enterprises.334.72.1.1.4.6.0 = INTEGER: 0
SNMPv2-SMI::enterprises.334.72.1.1.4.7.0 = INTEGER: 0
SNMPv2-SMI::enterprises.334.72.1.1.4.8.0 = STRING: "XXXLHC"
SNMPv2-SMI::enterprises.334.72.1.1.4.21.0 = INTEGER: 0
SNMPv2-SMI::enterprises.334.72.1.1.4.31.0 = INTEGER: 11
SNMPv2-SMI::enterprises.334.72.1.1.4.34.0 = INTEGER: 0

Re: Error while running a snmp command from terminal

Posted: Fri Oct 26, 2012 1:08 pm
by scottwilkerson
Ok, you walk shows that .1.3.6.1.4.1.334.72.1.1.4 doesn't exist, I am guessing you need the following

Code: Select all

./check_snmp -H ipaddress -o 1.3.6.1.4.1.334.72.1.1.4.1.0 -C public -m ALL

Re: Error while running a snmp command from terminal

Posted: Fri Oct 26, 2012 1:46 pm
by MSPk
I still get the same error message...!!

./check_snmp -H ipaddress -o .1.3.6.1.4.1.334.72.1.1.4.1.0 -C public -m ALL
SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] ipaddress:161 .1.3.6.1.4.1.334.72.1.1.4.1.0

Re: Error while running a snmp command from terminal

Posted: Sat Oct 27, 2012 8:35 am
by scottwilkerson
Remove the . from the beginning of the OID

You could also use

Code: Select all

./check_snmp -H ipaddress -o SNMPv2-SMI::enterprises.334.72.1.1.4.1.0 -C public -m ALL

Re: Error while running a snmp command from terminal

Posted: Wed Oct 31, 2012 6:50 am
by MSPk
This is working fine now...please mark it as solved