Re: Monit is not notifying me of PID changes

"[email protected]" <[email protected]>
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <[email protected]>
Hello,

the PID and PPID change tests are no longer implicit from Monit 5.11.0, changelog excerpt:

--8<--
New: The PID and PPID change tests are no longer implicit. If you
want to test the process PID/PPID changes, you have to add this test
explicitly:
    if changed pid then alert
    if changed ppid then alert
--8<--

Best regards,
Martin


> On 18 Oct 2017, at 21:56, Ragnar <[email protected]> wrote:
> 
> Hello,
> 
> I have monit 5.16 installed in Ubuntu 16.04 and I am not getting alerts of PID changes. I get alerts of other monit events without any problems.
> 
> 
> My alerts are configured in monitrc as follows:
> 
> set alert [email protected] NOT ON { fsflags }
> 
> 
> My services config files looks like this:
> 
> check process nginx
>   with pidfile /var/run/nginx.pid
>   start "/etc/init.d/nginx start"
>   stop "/etc/init.d/nginx stop" 
>   
>   if failed host localhost port 443
>   then exec "/usr/local/bin/monit_slack_notification.sh"
>   else if succeeded
>   then exec "/usr/local/bin/monit_slack_notification.sh"
>   if not exist
>   then exec "/usr/local/bin/monit_slack_notification.sh"
>   else if succeeded
>   then exec "/usr/local/bin/monit_slack_notification.sh"
>   if failed host localhost port 443
>   then restart
>   if not exist
>   then restart
> 
> 
> If I restart Nginx manually (i.e. service nginx restart), the PID changes, but I do not get the monit alert. What could be happening?
> 
> Thank you in advance.
> 
> Best Regards,
> Ragnar
> -- 
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general


-- 
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
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.