I have the following plan for handling traps,

The user defined signals are sent to agent from a software running on
on the hardware(the device I wish to moniter) and
the SNMP agent should catch these signals and send traps

I am still not sure about how to implement the above idea.

I had a look into receive() function in snmpd.c file and found
that it receives incoming messages - it seems to receive signals like
SIGINT, SEGUSR1 etc.,. This receive function has an infinite loop -
now the question is
is this the place to implement signal handers?? like let's say for example

signal(SIGOWN, handleMyOwnSignals);

where SIGOWN is an user defined signal and function
"handleMyOwnSignals" receives signals and
sends traps based on signal ID.

Is there any flaw in the above approach?? I am yet to venture into implementing
the above strategy.

Please guide me - I am anxiously looking for replies

-------------------------------------------------------------------------
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to