|Subject:||Re: alert only when process exists|
|Date:||Fri, 06 Apr 2012 09:09:50 +0200|
|User-agent:||Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2|
Le 05/04/2012 21:43, Luis Londono a écrit :
I am wondering if I can receive an alert when a process or a unix socket appears. I can't figure out how to get an alert when the process appears. I know this is a strange requirement but we can't figure out why a certain process gets started. While we debug I would like to be alerted so I can kill it when it happens. Any ideas how I would do this check?
you can use inotify tools and write a log monitored by monit with a match content.
you will then have a mail with the path of the socket.
Have a look to inotify shell utilities.
Require a not too old kernel on Linux, 2.6. ??? I don't remember.
I guess it is the reason why inotify is not used in monit : it is not available on all Unices .
|[Prev in Thread]||Current Thread||[Next in Thread]|