check_snmp weirdness

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
highness
Posts: 192
Joined: Thu May 01, 2014 4:25 pm

check_snmp weirdness

Post by highness »

Trying to do some monitoring of a specific OID on a CheckPoint firewall and am running into some weirdness...

When I do and snmpwalk I get results returned:

Code: Select all

snmpwalk -c super_seekrit_string 10.0.0.83 -v 2c 1.3.6.1.4.1.2620.1.1.25.3
SNMPv2-SMI::enterprises.2620.1.1.25.3.0 = Gauge32: 46800
When I do a check_snmp I get this:

Code: Select all

./check_snmp -H 10.0.0.83 -v -P 2c -c super_seekrit_string -o 1.3.6.1.4.1.2620.1.1.25.3
/usr/bin/snmpget -Le -t 1 -r 5 -m '' -v 2c [authpriv] 10.0.0.83:161 1.3.6.1.4.1.2620.1.1.25.3
External command error: Timeout: No Response from 10.0.0.83:161.
What am I missing?
kyang

Re: check_snmp weirdness

Post by kyang »

Try running it like this? In single and double quotes?

Code: Select all

./check_snmp -H 10.0.0.83 -v -P 2c -C 'string' -o "1.3.6.1.4.1.2620.1.1.25.3"
Is it the same result?
highness
Posts: 192
Joined: Thu May 01, 2014 4:25 pm

Re: check_snmp weirdness

Post by highness »

kyang wrote:Try running it like this? In single and double quotes?

Code: Select all

./check_snmp -H 10.0.0.83 -v -P 2c -C 'string' -o "1.3.6.1.4.1.2620.1.1.25.3"
Is it the same result?

Regardless of whether I use single or double quotes, I get this:

Code: Select all

iso.3.6.1.4.1.2620.1.1.25.3 = No Such Instance currently exists at this OID
SNMP OK - Such Instance currently exists at this OID |
kyang

Re: check_snmp weirdness

Post by kyang »

It says there, that such Instance currently exists at this OID

Could you rerun the snmpwalk and make sure the OID is correct?

Code: Select all

snmpwalk <IP> -c string -v2c -On

Code: Select all

./check_snmp -H <ip> -v -P 2c -C 'string' -o ".1.3.6.1.2.1.123.1.4.1.19.5.3"
/usr/bin/snmpget -Le -t 10 -r 5 -m '' -v 2c [context] [authpriv] 192.xxx.x.x:161 .1.3.6.1.2.1.123.1.4.1.19.5.3
iso.3.6.1.2.1.123.1.4.1.19.5.3 = Gauge32: 12
SNMP OK - 12 | iso.3.6.1.2.1.123.1.4.1.19.5.3=12
Here's my example just on a router.
Locked