Xymon Mailing List Archive search

Hobbit, Net-snmp snmptrap,and HPOV

list Henrik Størner
Fri, 2 Sep 2005 18:34:17 +0200
Message-Id: <user-848f16d6b959@xymon.invalid>

On Fri, Sep 02, 2005 at 11:43:55AM -0400, Coupe, Mark (ITD) wrote:
I'm trying to push alarms from Hobbit to HPOV.  We have a custom script
that is invoking Netsnmp's snmptrap.  The snmp traps are reaching the HP
Node Manager Event Browser correctly.  However, the OV operations trap
condition is not recognizing the trap.  The trap is being displayed as
"unmatched" in the Message Browser even though there is a condition set
up for that specific trap.
 
When we look at the unmatched trap, it appears that the OID is not being
recognized and an '0' is inserted, for example instead of
.1.3.6.1.4.1.7058.0.XX, we are seeing .0.0.XX.
The problem is somewhere in your custom script, since that's what
generates the OID that is being fed to the snmptrap command.

The command you should end up with ought to look somewhat like

   snmptrap -v1 -c public \
      172.16.10.100 \
      "" \
      hobbit.foo.com \
      0 0 "" \
      1.3.6.1.4.1.7058.1 \
      s "This is a Hobbit trap message"

172.16.10.100 is the HPOV monitor IP-address, "hobbit.foo.com" is the
hostname reporting the trap, "1.3.6...." is the trap OID.

At least, this generates an SNMP trap that Ethereal decodes as I would
expect.


Regards,
Henrik