Restarting a process on Linux based on REGEX in LogMatch

Lists <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I would like to know if it is possible to trigger a process restart 
based on entries in a log file, using logmatch?

I am trying to use logmatch to monitor a log file and look for " 
ldap_search() failed: Time limit exceeded" and then if that error occurs 
do something like /sbin/service slaps restart.


Is this possible?  and if so, how ...

Thanks,

David.

------------------------------------------------------------------------------
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.