Re: How to use examples/notification.c (2)
"dan anderson" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
With that module compiled in, snmpd will send traps to any registered sinks. You're correct, they're added in snmpd.conf normally. As noted in http://www.net-snmp.org/docs/man/snmpd.conf.html: trapsink HOST [COMMUNITY [PORT]] trap2sink HOST [COMMUNITY [PORT]] informsink HOST [COMMUNITY [PORT]] will all work to add sinks, where HOST is the address of your manager, COMMUNITY is probably public, and PORT should be omitted unless you've changed it from the default. -Dan 2008/9/12 Duy-Ky Nguyen <[email protected]>: > Hello Dan and Mike, > > "Free" support is much better than "paid" support ;-) > > I'm deeply touch by your very great and prompt responses. > > I gor wireshark capture SNMP successfully using command line snmptrap. > > But I failed to see SNMP in wireshark after I started snmpd and waited for > quite a while. > > I guess that I have to set up snmpd.conf ??? If so, how to do it ??? > > Thanks so much for your help > > Duy > > > > ----- Original Message ----- From: "Mike Ayers" <[email protected]> > To: "dan anderson" <[email protected]>; "Duy-Ky Nguyen" > <[email protected]> > Cc: <[email protected]> > Sent: Friday, September 12, 2008 3:10 PM > Subject: RE: How to use examples/notification.c > > > > Also note that this is an example of sending notifications from a subagent. > Sending notifications from a separate application is a little different. > > > HTH, > > Mike > > >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] On >> Behalf Of dan anderson >> Sent: Friday, September 12, 2008 3:02 PM >> To: Duy-Ky Nguyen >> Cc: [email protected] >> Subject: Re: How to use examples/notification.c >> >> snmptrapd is a trap listening daemon, and will not send traps. >> >> notification.c & .h will compile into a module which sends a >> notification/trap (netSnmpExampleNotification is the one) twice a >> minute. So with the snmptrapd running, if you then compile the >> notification example into the agent (snmpd), put localhost in the >> config file as a sink, and run snmpd, then your snmptrapd should get >> notifications every 30 seconds. >> >> -Dan >> >> 2008/9/12 Duy-Ky Nguyen <[email protected]>: >> > Hello, >> > >> > In the directory net-snmp-5.2.5/agent/mibgroup/examples, >> there is a file >> > describing how to send a notification from inside the agent. >> > >> > I did >> > ./configure --with-mib-modules="examples/notification >> > as required, then make install >> > >> > But I'm not sure how this notification gets executed ??? >> > Is it executed by snmptrapd ??? >> > >> > Your help is greatly appreciated >> > >> > Duy Kyng >> > >> > >> -------------------------------------------------------------- >> ----------- >> > This SF.Net email is sponsored by the Moblin Your Move >> Developer's challenge >> > Build the coolest Linux based applications with Moblin SDK >> & win great >> > prizes >> > Grand prize is a trip for two to an Open Source event >> anywhere in the world >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > _______________________________________________ >> > 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 >> > >> > >> >> -------------------------------------------------------------- >> ----------- >> This SF.Net email is sponsored by the Moblin Your Move >> Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & >> win great prizes >> Grand prize is a trip for two to an Open Source event >> anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> 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 >> > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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