Example of configuring trap recipients?

Jeff Stewart jstewart____remarq.com
Wed Feb 9 02:44:28 CET 2000


Frank,
    Thanks for the code.  I've managed to get V2 traps working just fine with Agent++
now.  I did have to make one change to the snmp++3.0 distribution on your site.  The diff
is included below.  The variable binding list for a V2 trap has two standard elements at
the beginning of the list: the uptime and the OID of the trap.  The SNMP++ distribution
was using an incorrect OID for the trapOid parameter.  This caused OpenView (and probably
most other monitoring software) to discard these traps.  The diff:

Index: snmpmsg.cpp
===================================================================
RCS file: /dvlp/cvs/snmp++/src/snmpmsg.cpp,v
retrieving revision 1.1.1.1.2.1
retrieving revision 1.1.1.1.2.2
diff -r1.1.1.1.2.1 -r1.1.1.1.2.2
385c385
<       tempvb.set_oid("1.3.6.1.6.3.1.1.5");
---
>       tempvb.set_oid("1.3.6.1.6.3.1.1.4.1.0");

Thanks very much for putting together and distributing Agent++.  It looks like it will
make a fine framework for some monitoring agents I'm looking to put together.

    Jeff

Frank Fock wrote:

> Hi Jeff,
>
> you are right. My example has had a little bug. You can find the corrected
> and tested version attached, including the three missing ::add_entry(...)
> methods. Sorry, that I was too late ;-)
>
> Best regards,
> Frank




More information about the AGENTPP mailing list