On 17 Sep 2014, at 22:54, Kevin Chadwick <[email protected]> wrote:

> On Wed, 17 Sep 2014 20:09:27 +0200
> Martin Pala wrote:
> 
>> Sorry, but you are monit user and you have to know or find where your 
>> process stores the pidfile. If no pidfile is available, you can use the 
>> "check process XYZ matching ..." test which uses unique pattern to find the 
>> process (the pattern can be tested with "monit procmatch PATTERN).
> 
> I avoid pid files as the process list is always current.
> 
> Usually you have a unique name like httpd: parent process which I had
> scripted.
> 
> I noticed today however that OpenBSD's newsyslog matches the parent
> and not the children which run as www user with
> 
> pkill -USR1 -U root -u root -x httpd
> 
> I switched to that because a change in newsyslog.conf would flag up
> that I may need to check if it still matches (I expect both always will
> though)
> 
> So figured I'd throw out the idea that perhaps a user match for
> procmatching could be useful?


Hi Kevin,

the extension of procmatch check by optional uid seems useful.

Cheers,
Martin
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to