RE: How to send notifications from applications
"Jose Jurado" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
-----Mensaje original----- De: [email protected] [mailto:[email protected]] En nombre de Dave Shield Enviado el: martes, 26 de septiembre de 2006 10:25 Para: Jose Jurado CC: [email protected] Asunto: Re: How to send notifications from applications 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. > > I want some features to be performed: > > - The library must be multi-platform. (just Linux and Windows) > > - The notifications must be done in asynchronous mode. (to the applications side) > > - The configuration of the agent (snmpd.conf) must be used. (this point exclude the command-line snmptrap) Extend the applications to be AgentX subagents, using the information in http://www.net-snmp.org/tutorial/tutorial-5/toolkit/demon as a template. In particular, take a look at the example-demon.c file, mentioned in the second half. You won't need to implement the MIB module (unless you want to manage the applications directly), but the same basic framework should support sending traps as well. Dave ---------------------------------------------------------------------------- ----------------------------- Thanks for your immediate response, Dave. 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. Could I write a sub-agent which provides this method for all the applications? Is a sub-agent listening in a socket a better idea? Jose ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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