Page 1 of 3

Traps translation not happening in XI

Posted: Fri May 31, 2013 1:36 am
by MSPk
Hi,
we are currently using Nagios XI and we have managed to send the traps from third party monitoring tool "Solarwinds".

I could see the traps coming in to Nagios XI. They are under /var/log/snmptt/snmpttunknown.log
snmpttunknown.log output:
Fri May 31 02:30:18 2013: Unknown trap (.1.3.6.1.4.1.11307.10) received from ip-10-0-0-10 at:
Value 0: ip-10-0-0-10
Value 1: 10.0.0.10
Value 2: 0:0:00:00.00
Value 3: .1.3.6.1.4.1.11307.10
Value 4: 10.0.0.10
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=ip-10-0-0-143.ec2.internal
Ent Value 1: .1.3.6.1.4.1.11307.10.3=10.0.0.143
Ent Value 2: .1.3.6.1.4.1.11307.10.4=2
Ent Value 3: .1.3.6.1.4.1.11307.10.5=ip-10-0-0-143.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=2
Ent Value 6: .1.3.6.1.4.1.11307.10.1=
Ent Value 7: .1.3.6.1.4.1.11307.10.8=test2 ip-10-0-0-143.ec2.internal is Up.



When I see the output of /var/log/snmptt/snmpttsystem.log I see "Total traps translated=0"

Fri May 31 02:00:17 2013 SNMPTT v1.3 shutdown
Fri May 31 02:00:17 2013 Total traps received=12,Total traps translated=0,Total traps ignored=0,Total unknown traps=12
Fri May 31 02:00:18 2013 SNMPTT v1.3 started
Fri May 31 02:00:18 2013 Loading /etc/snmp/snmptt.conf
Fri May 31 02:00:18 2013 Finished loading 648 lines from /etc/snmp/snmptt.conf
Fri May 31 02:00:18 2013 Could not convert user id 'snmptt' to a numeric UID


I have uploaded the mib file from solarwinds server to Nagios XI server (Please find it attached) and restarted the snmptt service. Still not able to get it translated!
what does the message: Could not convert user id 'snmptt' to a numeric UID mean? is this a problem?
Please let us know what step we are missing here?

Re: Traps translation not happening in XI

Posted: Fri May 31, 2013 10:36 am
by abrist
Do you have an snmptt user on the system?

Code: Select all

cat /etc/passwd | grep snmptt

Re: Traps translation not happening in XI

Posted: Sun Jun 02, 2013 11:24 pm
by MSPk
I dont think if the user is created. When I run the command " cat /etc/passwd | grep snmptt" there is no output!
Please let me know how this can be done or any special instructions required?

Re: Traps translation not happening in XI

Posted: Mon Jun 03, 2013 3:34 pm
by sreinhardt
Have you followed the snmp traps with XI document? In addition to uploading, you need to run "addmib /path/to/mib" on each new mib file, then restart snmptt and the like.

Re: Traps translation not happening in XI

Posted: Tue Jun 04, 2013 1:02 am
by MSPk
Hi,
Yes I have followed the document, but when I use addmib command, I get the following error for this specific mib:

No log handling enabled - turning on stderr logging
Unlinked OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Undefined identifier: SolarWinds near line 154 of /usr/share/snmp/mibs/SolarWinds-Traps.mib
Unlinked OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Undefined identifier: SolarWinds near line 144 of /usr/share/snmp/mibs/SolarWinds-Traps.mib
Cannot adopt OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Cannot adopt OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Cannot adopt OID in SOLARWINDS-TRAPS: detailedAlert ::= { SolarWinds# 1 }
Cannot adopt OID in SOLARWINDS-TRAPS: genericAlert ::= { SolarWinds# 1 }
Unknown object identifier: SOLARWINDS-TRAPS::genericAlert
No log handling enabled - turning on stderr logging
Unlinked OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Undefined identifier: SolarWinds near line 154 of /usr/share/snmp/mibs/SolarWinds-Traps.mib
Unlinked OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Undefined identifier: SolarWinds near line 144 of /usr/share/snmp/mibs/SolarWinds-Traps.mib
Cannot adopt OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Cannot adopt OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Cannot adopt OID in SOLARWINDS-TRAPS: detailedAlert ::= { SolarWinds# 1 }
Cannot adopt OID in SOLARWINDS-TRAPS: genericAlert ::= { SolarWinds# 1 }
Unknown object identifier: SOLARWINDS-TRAPS::detailedAlert

Re: Traps translation not happening in XI

Posted: Tue Jun 04, 2013 3:55 pm
by abrist
Looks like there may be some issues with that particular mib. Are these mibs vender-provided?

Re: Traps translation not happening in XI

Posted: Mon Jun 10, 2013 4:28 am
by MSPk
Yes, Those are vendor provided mibs. You are right there was some problem with the mibs, a typo. We fixed it and the errors were gone!
But we are still left with one question: Why are we still getting the snmp traps in /var/log/snmptt/snmpttunknown.log.

Also there are hundreds of traps coming from the server, how those traps can be displayed in a single line in Nagios XI highlighted in the screenshot:

Re: Traps translation not happening in XI

Posted: Mon Jun 10, 2013 11:52 am
by abrist
Looks like the traps you are sending are not being associated with this host object. Have you tried configuring the received traps from "unconfigured objects"?

Re: Traps translation not happening in XI

Posted: Tue Jun 11, 2013 12:24 pm
by MSPk
Hi abrist,
I have checked in unconfigured hosts, there is nothing available. "No unconfigured passive objects found."
I have attached the Solarwinds mib from the server to Nagios machine by addmib. Please find it in my first post in this thread, I am not sure if it has all the definitions to translate it.

Re: Traps translation not happening in XI

Posted: Tue Jun 11, 2013 6:43 pm
by scottwilkerson
MSPk wrote:Hi,
Yes I have followed the document, but when I use addmib command, I get the following error for this specific mib:

No log handling enabled - turning on stderr logging
Unlinked OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Undefined identifier: SolarWinds near line 154 of /usr/share/snmp/mibs/SolarWinds-Traps.mib
Unlinked OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Undefined identifier: SolarWinds near line 144 of /usr/share/snmp/mibs/SolarWinds-Traps.mib
Cannot adopt OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Cannot adopt OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Cannot adopt OID in SOLARWINDS-TRAPS: detailedAlert ::= { SolarWinds# 1 }
Cannot adopt OID in SOLARWINDS-TRAPS: genericAlert ::= { SolarWinds# 1 }
Unknown object identifier: SOLARWINDS-TRAPS::genericAlert
No log handling enabled - turning on stderr logging
Unlinked OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Undefined identifier: SolarWinds near line 154 of /usr/share/snmp/mibs/SolarWinds-Traps.mib
Unlinked OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Undefined identifier: SolarWinds near line 144 of /usr/share/snmp/mibs/SolarWinds-Traps.mib
Cannot adopt OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Cannot adopt OID in SOLARWINDS-TRAPS: SolarWinds# ::= { SolarWinds 0 }
Cannot adopt OID in SOLARWINDS-TRAPS: detailedAlert ::= { SolarWinds# 1 }
Cannot adopt OID in SOLARWINDS-TRAPS: genericAlert ::= { SolarWinds# 1 }
Unknown object identifier: SOLARWINDS-TRAPS::detailedAlert
This makes me think your MIB is referencing an OID named SolarWinds which it cannot find. Perhaps there is another MIB from the vendor that needs to be installed first...