Trouble adding MIBS into Nagios

Gary L <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAJqE8q_FhaGcSXv7xZEsxX8D8s96caAxrDhqB8TDf9c=U4-6nQ@mail.gmail.com>
Hello Listers,

This is my first post,  and I'm very new at SNMP so please accept my
apologies in advance.

I am working with 2 systems Nagios XI and Solarwinds in a test
envioronment.  I am sending traps successfully from Solarwinds to Nagios,
 but the traps seem to appear only in the
file /var/log/snmptt/snmpttunknown.log on the Nagios box.  The Nagios
helpdesk people tell me I have a problem with my MIBS.  I agree but need
some help correcting it.

Solarwinds provided 2 MIB files (originally with at least 2 errors
included) which I have attached.  I believe the first MIB,
SOLARWINDS-PRODUCTS,  is a prerequisite for the second MIB,
SOLARWINDS-TRAPS.

In the Nagios XI GUI,  there is a checkbox for "Process Traps" when adding
MIBS.  I must clear this checkbox when adding the first MIB -
SOLARWINDS-PRODUCTS, since it does not contain any TRAP-TYPE statements.
 When I add the 2nd MIB,  I set the checkbox and I get a message that 2
objects were loaded.  I presume these are the 2 TRAP-TYPE statements for
"genericAlert" and "detailedAlert".

After I use the GUI to add MIBs,  I also used the backend and run a script
called "addmib",  which is also attached.

In trying to add the attached MIBS into Nagios, I get the impression that
the MIBS were successfully added:

[root@ip-10-0-0-100 snmptt]# snmptranslate SOLARWINDS-TRAPS::genericAlert
SOLARWINDS-TRAPS::detailedAlert

However when I examine /var/log/snmptt/snmpttunknown.log,  I get the
impression that either Nagios or some SNMP module did not accept the
SOLARWINDS-PRODUCTS MIB since the last two nodes (11307.10) appear to be
unknown to snmptranslate:

[root@ip-10-0-0-100 snmptt]# snmptranslate .1.3.6.1.4.1.11307.10
SNMPv2-SMI::enterprises.11307.10
[root@ip-10-0-0-100 snmptt]#

In /var/log/snmptt/snmpttunknown.log:

Thu Jun 27 02:35:07 2013: Unknown trap (.1.3.6.1.4.1.11307.10) received
from ip-10-0-0-111 at:
Value 0: ip-10-0-0-111
Value 1: 10.0.0.111
Value 2: 0:0:00:00.00
Value 3: .1.3.6.1.4.1.11307.10
Value 4: 10.0.0.111
Value 5:
Value 6: .1.3.6.1.4.1.11307
Value 7:
Value 8:
Value 9:
Value 10:
Ent Value 0: .1.3.6.1.4.1.11307.10.2=AMAZONA-MCC3CC0.ec2.internal
Ent Value 1: .1.3.6.1.4.1.11307.10.3=10.0.0.111
Ent Value 2: .1.3.6.1.4.1.11307.10.4=1
Ent Value 3: .1.3.6.1.4.1.11307.10.5=AMAZONA-MCC3CC0.ec2.internal
Ent Value 4: .1.3.6.1.4.1.11307.10.6=Node
Ent Value 5: .1.3.6.1.4.1.11307.10.7=1
Ent Value 6: .1.3.6.1.4.1.11307.10.1=K's Alert message from SolarWinds.
Ent Value 7: .1.3.6.1.4.1.11307.10.8=Alert G when a node goes down
AMAZONA-MCC3CC0.ec2.internal is Up.


[root@ip-10-0-0-100 snmptt]# date
Thu Jun 27 02:39:26 EDT 2013

-----------------------------------------------------
Can anyone provide some advice on a good way to proceed?  Hire a good SNMP
contractor?

Thanks!

Gary

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
SOLARWINDS-PRODUCTS-MIB.txt (text/plain, 1.6 KB)
--
-- SolarWinds-PRODUCTS:  SolarWinds Network Management Tools
--
-- Product Identifiers
--
-- October 2003, Don Yonce
--
-- Copyright (c) 1995-2003 by SolarWinds.Net Inc.
-- All rights reserved.
-- 
--


SOLARWINDS-PRODUCTS DEFINITIONS ::= BEGIN

IMPORTS
	MODULE-IDENTITY,
	OBJECT-IDENTITY,
	enterprises
		FROM SNMPv2-SMI;

solarWinds			MODULE-IDENTITY
        LAST-UPDATED    "0310140000Z"
        ORGANIZATION    "SolarWinds.Net Inc."
        CONTACT-INFO    "SolarWinds.Net Support
 
			Postal: 	8221 East 63rd Place	
					Tulsa, OK 74133
					USA

			Tel: 		+1 918-307-8100
			E-mail:	[email protected]"

        DESCRIPTION	"This MIB Module defines the generic traps generated by SolarWinds Orion Network Performance Monitor."

        ::= { enterprises 11307 }

toolsets                        OBJECT IDENTIFIER ::= { solarWinds 1 }
orion                           OBJECT IDENTIFIER ::= { solarWinds 2 }
trap                            OBJECT IDENTIFIER ::= { solarWinds 10 }

--	SolarWinds Network Management Toolsets

freeTools                       OBJECT IDENTIFIER ::= { toolsets 1 }
standardEdition                 OBJECT IDENTIFIER ::= { toolsets 2 }
professionalEdition             OBJECT IDENTIFIER ::= { toolsets 3 }
professionalPlusEdition         OBJECT IDENTIFIER ::= { toolsets 4 }
engineersEdition                OBJECT IDENTIFIER ::= { toolsets 5 }
broadbandEngineersEdition       OBJECT IDENTIFIER ::= { toolsets 6 }

--	SolarWinds Orion Web Based Network Management Products

orionNPM                        OBJECT IDENTIFIER ::= { orion 1 }

END
SolarWinds-Traps.mib (application/octet-stream, 5.3 KB) - not displayed
addmib.sh.txt (text/plain, 930 B)
#!/bin/sh -e

usage() {
        echo "Usage: $0 <mibfile>"
        echo "Configure snmptt.conf for a given MIB file"
}

if [ -z "$1" ]; then
        usage
        exit 1
fi

if [ ! -r "$1" ]; then
        usage
        exit 4
fi

if grep -qFe " (file:$1) converted on " /etc/snmp/snmptt.conf; then
        echo "This file looks like it has been added already!  Exiting."
        exit 2
fi

touch /tmp/snmpttconvertmib.log /etc/snmp/snmptt.conf

if [ -w /tmp/snmpttconvertmib.log ] && [ -w /etc/snmp/snmptt.conf ]; then
        : do nothing
else
        echo "You don't have privileges to run this application, check perms"
        echo "on /tmp/snmpttconvertmib.log and /etc/snmp/snmptt.conf"
        exit 4
fi

cmd='/usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*"'
snmpttconvertmib --in="$1" --out=/etc/snmp/snmptt.conf \
        --exec "$cmd" >> /tmp/snmpttconvertmib.log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.