This is a discussion on periodic TRAP watcher! within the SNMP Users forums, part of the Networking and Network Related category; Hi everybody, In the example program "notification.c" provided with Net-SNMP, we have the following function call ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi everybody,
In the example program "notification.c" provided with Net-SNMP, we have the following function call snmp_alarm_register(30, /* seconds */ SA_REPEAT, /* repeat (every 30 seconds). */ send_example_notification, /* our callback */ NULL /* no callback data needed */ ); which calls the function "send_example_notification"(a pointer to TRAP generating function) every 30 seconds. In my project I have a similar requirement, using something similar as above we plan to keep a continous watch on a database(which stores the complete data of a hardware device, hence it reflects the complete state of Hardware device with which SNMP agent deals with) and throw traps in case of any abnormalities - which seems quiet achievable!. My questions is the above function call is implemented in an infinite loop with periodic calls to function "send_example_notification". In C language there are no threads, which makes me believe that the program execution will never come out of "continous watcher loop", thereby the agent will NOT respond to SET and GET requests(I have not checked it yet though), or for that matter it does not deal with anything other than this "continous watcher loop" I hope I have conveyed what I intended to. Looking for some help With warm regards, Raghavendra ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/...net-snmp-users |
![]() |
| Thread Tools | |
| Display Modes | |
|
|