Re: To generate snmp trap by the agent
yogesh m <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
________________________________ From: Dave Shield <[email protected]> To: yogesh m <[email protected]> Cc: Net-SNMP users <[email protected]> Sent: Thu, 14 October, 2010 13:36:30 Subject: Re: To generate snmp trap by the agent firstly i want to thanks for your reply sir ya ... i am calling it in init func void init_tele(void) { DEBUGMSGTL(("telecrbt", "Initializing the telecrbt main module\n")); initialize_table_SysResourceTable(); send_mySysDown_trap(); } my initialize_table_SysResourceTable() works properly... from initialize_table_SysResourceTable() i am getting 6 system host resource values... i want to call send_mySysDown_trap() routine when ever i start my particular system... On 13 October 2010 09:39, yogesh m <[email protected]> wrote: > > i am just trying that when ever host status is enable i get a trap > > agent have the host resource values in a table > and for that table having index 0 i am trying to get trap for status > variable But you still haven't answered my question: >> OK - You've defined the routine to generate the trap. >> When is this routine called? What does that code look like? *Somewhere* in your code, there must be a call to the send_mySysDown_trap() routine, otherwise that trap will never be generated. Where are you calling this routine? Dave ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ 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