RE: How do I detect kill -9 snmpd?
"Mike Ayers" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <83E753BE7B6A324ABB336245BAF1DAAC09453EDC@mailserver.metatv-ds.metatv.com> |
> From: Vahid K [mailto:[email protected]] > Sent: Wednesday, September 10, 2008 10:34 AM > Thanks for the response Mike. Just for clarification... > Am I to understand that there is no way to detect snmpd is > dead from inside the snmp subaganet? In that case I could > call send_v2trap() and wouldn't know snmpd is gone. correct? To the point, the subagent probably should not concern itself with these things. Remember that there may be any number of subagents connected to a master, and therefore it is bad form for a subagent to attempt to alter the master. You should be able to detect a failed master when connecting via TCP and attempt reconnection, but the subagent should *not* attempt to restart the master - that job belongs to the NMS, application monitoring system, or whichever the end sysyop decides to use. I don't know if a subagent connected on a unix domain socket will notice if the master fails, but that shouldn't matter, since the socket will persist..? If the subagent is compiled into the master, it will never see the master fail. HTH, Mike ------------------------------------------------------------------------- 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