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.
Error while running a snmp command from terminal
-
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
Can you post the whole command which you are running from the terminal?
Re: Error while running a snmp command from terminal
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.
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
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
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
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 ALLRe: Error while running a snmp command from terminal
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
./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
Remove the . from the beginning of the OID
You could also use
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 ALLRe: Error while running a snmp command from terminal
This is working fine now...please mark it as solved