Re: proc, procfix and automated restart of failed process
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 01/05/07, Lambert, Eric <[email protected]> wrote: > My question, and the logical one that follows I believe, is…how does one go > about automating the execution of said snmpset command upon given process > failure? $ man snmpd.conf : DisMan Event MIB : monitor [OPTIONS] NAME EXPRESSION defines a MIB object to monitor.... OPTIONS There are various options to control the behaviour of the moni- tored expression.... -e EVENT specifies the event to be invoked when this monitor entry is triggered. setEvent ENAME [-I] OID = VALUE defines a set event named ENAME, assigning the (integer) VALUE to the specified OID. This can be triggered from a given moni- tor entry by specifying the option -e ENAME (see above). > Secondly, while I see alert trigger when I restart snmpd, why do I not see > it trigger when I kill the process while snmpd is up and running? How long are you waiting? The monitor command you list will check the status of the prEfforFlag every 60 seconds (-r 60). So depending exactly when the last check was made, you might have to wait up to a minute after killing the monitored process for the agent to spot the problem. Dave ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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