periodic TRAP watcher!

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 ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008
Raghavendra Prasad
 
Posts: n/a
Default periodic TRAP watcher!

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:15 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0