• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Watchdog email notifications

Pagemakers

Silver Pleskian
When my server reboots I get about 12 email notifications from Watchdog that services are being started.

I don’t get the same thing from my other Plesk servers upon reboot. How can I stop it?
 
I get this on the Parallels AWS EC2 AMI offering, but not on the one from CloudLinux.

At least I know it is working on the Parallels version. Not sure it if it is on the CloudLinux one or not, not yet anyway.
 
We have 2 plesk 12 servers. 1 sends the emails on restart and one doesn't. I had Parallels look at this and here is their fix.

> The difference of 2 Plesk 12 servers is in '/etc/init/psa-monit.conf' and '/etc/init/psa-wdcollect.conf' configuration files.
>
> > 1-server.com (this server sends notifications):
> ----------------
> [root@1server ~]# cat /etc/init/psa-monit.conf
> # psa-monit
> description "Plesk Watchdog Monitor service"
> author "Parallels <[email protected]>"
> start on starting rc RUNLEVEL=[2345]
> stop on shutdown
> exec /usr/local/psa/libexec/modules/watchdog/init/monit /usr/local/psa/etc/modules/watchdog/monitrc
> respawn
>
> [root@1server ~]# cat /etc/init/psa-wdcollect.conf
> # psa-wdcollect
> description "Plesk Watchdog Collector service"
> author "Parallels <[email protected]>"
> start on starting rc RUNLEVEL=[2345]
> stop on shutdown
> exec /usr/local/psa/libexec/modules/watchdog/init/wdcollect /usr/local/psa/etc/modules/watchdog/wdcollect.inc.php
> respawn
> ----------------
>
> > server2.com (this server does not send notifications)
> ----------------
> [root@server2 ~]# cat /etc/init/psa-monit.conf
> # psa-monit
> description "Plesk Watchdog Monitor service"
> author "Parallels <[email protected]>"
> #start on starting rc RUNLEVEL=[2345]
> start on runlevel [2345]
> stop on shutdown
> #exec /usr/local/psa/libexec/modules/watchdog/init/monit /usr/local/psa/etc/modules/watchdog/monitrc
> #respawn
> console output
> script
> /bin/sleep 60
> echo "Starting psa-monit."
> exec /usr/local/psa/libexec/modules/watchdog/init/monit /usr/local/psa/etc/modules/watchdog/monitrc
> end script
>
> [root@server2 ~]# cat /etc/init/psa-wdcollect.conf
> # psa-wdcollect
> description "Plesk Watchdog Collector service"
> author "Parallels <[email protected]>"
> #start on starting rc RUNLEVEL=[2345]
> start on runlevel [2345]
> stop on shutdown
> #exec /usr/local/psa/libexec/modules/watchdog/init/wdcollect /usr/local/psa/etc/modules/watchdog/wdcollect.inc.php
> #respawn
> console output
> script
> /bin/sleep 60
> echo "Starting psa-wdcollect."
> exec /usr/local/psa/libexec/modules/watchdog/init/wdcollect /usr/local/psa/etc/modules/watchdog/wdcollect.inc.php
> end script
> #respawn
> -----------------
>
> Configuration files on the 2nd server contain '/bin/sleep 60' which prevents watchdog loading before services it should monitor. That is why notifications were not sent.
 
Back
Top