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?
Traps translation not happening in XI
Traps translation not happening in XI
You do not have the required permissions to view the files attached to this post.
Re: Traps translation not happening in XI
Do you have an snmptt user on the system?
Code: Select all
cat /etc/passwd | grep snmpttFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Traps translation not happening in XI
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?
Please let me know how this can be done or any special instructions required?
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Traps translation not happening in XI
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Traps translation not happening in XI
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
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
Looks like there may be some issues with that particular mib. Are these mibs vender-provided?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Traps translation not happening in XI
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:
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:
You do not have the required permissions to view the files attached to this post.
Re: Traps translation not happening in XI
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"?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Traps translation not happening in XI
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Traps translation not happening in XI
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...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