LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-24-2020, 04:29 AM   #1
mozer
LQ Newbie
 
Registered: Sep 2013
Posts: 28

Rep: Reputation: Disabled
Question SNMP issues on Nagios


Hello all,

I have a problem with SNMP and nagios, i try to check a IBM x3850 X5 server with the following command,

Code:
/usr/local/nagios/libexec/check_snmp  -m /usr/share/snmp/mibs/imm.mib -H 172.30.25.21 -C community_1 -p 161 -o  .1.3.6.1.4.1.2.3.51.3.1.4.1
I get

Quote:
External command error: Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: IMM-MIB::systemHealthStat
The name of the trap is “systemHealthStat”, but there's an error
The MIB is tested on Windows with reasoning MIB browser with the same parameters, community, ports, IP etc

I can do a walk from Nagios
Quote:
snmpwalk -v1 -c community_1 172.30.25.21
and the response is something like
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.8072.3.2.10
iso.3.6.1.2.1.1.3.0 = Timeticks: (6507012) 18:04:30.12

Starts with “iso”…don’t really know why, also the OID i see on reasoning browser are not in the MIB file, how can that be possible?.
I must do this with nagios and there are other alarms with this plugin that are working well,

Can anyone help¿
 
Old 06-24-2020, 06:53 AM   #2
z80
Member
 
Registered: Jul 2019
Location: Europe
Distribution: Slackware64-current
Posts: 136

Rep: Reputation: 99
You can't use SNMP to query a trap. Instead the trap is sent (if configured) to a trap receiver.
So you either need snmptrapd with a configured snmp traphandler or you need to find a "normal" SNMP variable to query.
 
1 members found this post helpful.
Old 06-24-2020, 07:12 AM   #3
mozer
LQ Newbie
 
Registered: Sep 2013
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by z80 View Post
You can't use SNMP to query a trap. Instead the trap is sent (if configured) to a trap receiver.
So you either need snmptrapd with a configured snmp traphandler or you need to find a "normal" SNMP variable to query.
Well i don't really need traps, what i need the same result that Mib browser give me on windows but with nagios so i can work with that, i query "system status" on the mib browser and the response is "normal"...if is not normal i configure the alert

My main problem is the check_snmp error

Thanks!
 
Old 06-24-2020, 11:20 AM   #4
z80
Member
 
Registered: Jul 2019
Location: Europe
Distribution: Slackware64-current
Posts: 136

Rep: Reputation: 99
What do you get when you do a
Code:
snmpwalk -v 1 -C community_1  172.30.25.21  .1.3.6.1.4.1.2.3.51.3.1.4.1
?
 
1 members found this post helpful.
Old 06-25-2020, 03:55 AM   #5
mozer
LQ Newbie
 
Registered: Sep 2013
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by z80 View Post
What do you get when you do a
Code:
snmpwalk -v 1 -C community_1  172.30.25.21  .1.3.6.1.4.1.2.3.51.3.1.4.1
?
The response is the alarm was looking for ie translate to iso.3.6.1.4.1.2.3.51.3.1.4.1.0
Silly me i didn't see it was the same OID just with iso. ion front

Thanks!
 
Old 06-25-2020, 04:33 AM   #6
z80
Member
 
Registered: Jul 2019
Location: Europe
Distribution: Slackware64-current
Posts: 136

Rep: Reputation: 99
1.3.6.1.4.1 is the enterprises OID; all the manufacturer SNMP MIBs are below this OID.
The ISO part at the beginning refers to the "1.3" at the start of the OID.

Edited to add:
If check_snmp throws an error you can try to append a ".0" to the OID in question.

Last edited by z80; 06-25-2020 at 04:34 AM.
 
1 members found this post helpful.
  


Reply

Tags
nagios, snmp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does anyone face issues with new snmp bugfix ?(net-snmp-1:5.7.2-43.el7_7.3.x86_64) akhil.amethyst Linux - Software 0 02-19-2020 08:45 AM
Does anyone face issues with new snmp bugfix ?(net-snmp-1:5.7.2-43.el7_7.3.x86_64) akhil.amethyst Linux - Newbie 3 02-18-2020 05:26 AM
SNMP Configuration problem - able to snmp outbound, unable to snmp inbound. sumncguy Linux - Desktop 2 04-28-2015 09:26 AM
nagios not working (http://localhost/nagios or http://ip/nagios) 404 error connect2janu Linux - Server 1 11-18-2012 02:06 AM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration