Error while running a snmp command from terminal

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Error while running a snmp command from terminal

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Error while running a snmp command from terminal

Post by slansing »

Can you post the whole command which you are running from the terminal?
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Error while running a snmp command from terminal

Post 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.
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Error while running a snmp command from terminal

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error while running a snmp command from terminal

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Error while running a snmp command from terminal

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error while running a snmp command from terminal

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
MSPk
Posts: 317
Joined: Fri Aug 24, 2012 12:03 am

Re: Error while running a snmp command from terminal

Post by MSPk »

This is working fine now...please mark it as solved
Locked