check_snmp problem

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
bartxq
Posts: 1
Joined: Sat Mar 10, 2012 9:44 am

check_snmp problem

Post by bartxq »

Hi,

I have problem with module check_snmp. I'm using Debian 2.6.32 + Nagios Core 3.3.1 + plugins


In nagios web I see:

Code: Select all

SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m RFC1213-MIB -v 1 [authpriv] 100.50.204.30:161 ifOperStatus.1
when I use snmpget:

Code: Select all

snmpget -v 1 -c public 100.50.204.30 sysUptime.0
sysUptime.0: Unknown Object Identifier (Sub-id not found: (top) -> sysUptim
e)

and when use this

Code: Select all

snmpget -v 1 -c public 100.50.204.30 iso.3.6.1.2.1.1.3.0
iso.3.6.1.2.1.1.3.0 = Timeticks: (12109920) 1 day, 9:38:19.20


I change my nagios config in object.router.cfg

Code: Select all

  check_command           check_snmp!-C public -o .3.6.1.2.1.1.3.0
but still in nagios web i See:

Code: Select all

SNMP problem - No data received from host
CMD: /usr/bin/snmpget -t 1 -r 5 -m '' -v 1 [authpriv] 100.50.204.30:161 .3.6.1.2.1.1.3.0
I think the problem is with [autpriv] please help. I don't know how to fix it

Maybe anyone know how to add the MIB to debian?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_snmp problem

Post by scottwilkerson »

bartxq wrote:and when use this

Code: Select all

snmpget -v 1 -c public 100.50.204.30 iso.3.6.1.2.1.1.3.0
    iso.3.6.1.2.1.1.3.0 = Timeticks: (12109920) 1 day, 9:38:19.20
I change my nagios config in object.router.cfg

Code: Select all

  check_command           check_snmp!-C public -o .3.6.1.2.1.1.3.0
Change your object.router.cfg to

Code: Select all

  check_command           check_snmp!-C public -o iso.3.6.1.2.1.1.3.0
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked