Re: Traps generation using notification.c model and Win32
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 2005-12-01 at 10:46 -0800, xxx yyy wrote:
> notification.c documentation says: When this module is compiled into the
> agent (run configure with --with-mib-modules="examples/notification") ...
The "configure" script is the mechanism used on Unix-based (and
Unix-like) systems to add a new MIB module to the agent.
The equivalent process for Windows systems (using Visual C++)
is described in the file README.win32 - under the heading
"Extending the Agent".
(This is written with reference to mib2c output, but the same
procedure holds for Net-SNMP-supplied non-default MIB modules).
So instead of adding "my.h" and "my.c", you'd add notification.h
and notification.c to the project.
Instead of adding
#include "mibgroup/my.h"
you'd add
#include "mibgroup/examples/notification.h"
And instead of adding
if (should_init("my")) init_my();
you'd add
if (should_init("notification")) init_notification();
Dave
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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