On 26/09/06, Jose Jurado <[EMAIL PROTECTED]> wrote: > > I have to program a C library to let several applications notify their > > error codes and warnings to a central SNM.
> But I cannot modify the applications, I just have to provide them a function > (i.e. void snmp_notify(char *message) ) accessible by a library. Two options spring to mind. a) Write your function to turn the application into a subagent - opening the connection to the master agent (if this hasn't already been done) and sending the notification. b) Ignore the master agent altogether, and parse the snmpd.conf file yourself, determine the appropriate destination(s) and settings, and send the SNMP traps directly. (See snmptrap.c for examples of how to do this). Having a separate subagent (complete with yet another private inter-process API) feels unnecessary, IMO Dave ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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
