output of snmptrap for hardware monitoring
Hi,
I receive the following OID's from my secundairy trapdestination (via es-trapdest)
May 16 09:26:02 <foobar> snmptrapd[15087]: <e25k-sp> [xx.xxx.xx.xx]: Trap , .1.3.6.1.2.1.1.3.0 = Timeticks: (43210204) 5 days, 0:01:42.04, .1.3.6.1.6.3.1.1.4.1.0 = OID: .1.3.6.1.4.1.42.2.12.2.0.2, .1.3.6.1.4.1.42.2.12.2.1.3.2.0 = OID: .1.3.6.1.4.1.42.2.85.1.7.2.18, .1.3.6.1.6.3.1.1.4.5.0 = OID: .1.3.6.1.6.1.1, .1.3.6.1.6.3.1.1.4.6.0 = Hex-STRING: 0A 90 E0 21 04 89
I'd like to monitor all our e25k hardware via our Nagios monitoring server by sending snmptraps to it, but all I get is these oid's?
Any help is appreciated.
Regards
Rick
[682 byte] By [
rmieden] at [2007-11-26 7:25:05]

# 1
Hi Rick,
> May 16 09:26:02 <foobar> snmptrapd[15087]: <e25k-sp>
> [xx.xxx.xx.xx]: Trap , .1.3.6.1.2.1.1.3.0 =
> Timeticks: (43210204) 5 days, 0:01:42.04,
> .1.3.6.1.6.3.1.1.4.1.0 = OID:
> .1.3.6.1.4.1.42.2.12.2.0.2,
> .1.3.6.1.4.1.42.2.12.2.1.3.2.0 = OID:
> .1.3.6.1.4.1.42.2.85.1.7.2.18, .1.3.6.1.6.3.1.1.4.5.0
> = OID: .1.3.6.1.6.1.1, .1.3.6.1.6.3.1.1.4.6.0 =
> Hex-STRING: 0A 90 E0 21 04 89
Yikes! Yes the default traps are a mess. If you just want to get it done (or have something running properly in parallel while you figure out the raw traps)... install EventAction and the Generic SNMP Framework Adapter:
http://www.halcyoninc.com/products/EventAction/index.php
http://www.halcyoninc.com/products/Frameworks/index.php
This will give you human readable SNMPv1 traps (that include the same status messages you see in SunMC) in a defined format:
http://www.halcyoninc.com/products/Frameworks/help/HALAdapterFrameworks-details -h.html
...and a MIB you can feed Nagios or your trap receiver. It will be on your SunMC Server here after you install the Framework Adapter:
/var/opt/SUNWsymon/cfg/HALAdapterFrameworks.mib
As a bonus if you use EventAction you'll also have the option of bi-directional integration. So if you set up an acknowledgement action in Nagios it can reach back into your SunMC Agents and turn the alarms off there as well.
Regards,
Mike.Kirk@HalcyonInc.com
http://www.HalcyonInc.com
# 2
I am trying to do the same. That is, monitor all my Sun hardware via Nagios.
We monitor all hosts via Nagios. I have installed SunMC agents on a few of our Sun servers. I used es-trapdest to setup a secondary trap destination (Nagios server). I have Net::SNMP modules installed on the Nagios box. A few questions for you:
1) How can I test the connection between my Sun server and Nagios monitoring box?
2) How do I send SNMP traps and do SNMP walks?
Any help would be greatly appreciated.
TIA.