agentx: how do I register my traps

Stéphane Charette <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CA+HxBUKP8Zz6_cjhjrsNVnQFE-630kWDxptzifXSuPev9T7wtA@mail.gmail.com>
Just joined the list 30 seconds ago.  :)  I'm working with net-snmp and
agentx. I have to register my enterprise OIDs for scalars and tables. For
example:

> netsnmp_register_read_only_scalar(...); // register my scalars
> netsnmp_tdata_register(...); // register my table

Until I make those calls in my agentx code, my OIDs don't show up in snmpd.

My MIB file also has NOTIFICATION-TYPE definitions, such as:

> myTrapTest NOTIFICATION-TYPE
>     STATUS          current
>     DESCRIPTION     "A sample trap."
>     ::= { myNotifications 1 }

I took a look at #include <net-snmp/agent/agent_trap.h> but this file seems
to be about sending traps, not registering custom ones.

My question: What do I call to register my trap definitions?

Thanks in advance!

Stéphane Charette

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.