Parallels Plesk Panel 8.6 is running on FreeBSD.
The following error is shown when try to start Watchdog through {Modules -> Watchdog -> Enable}:
Error: The monit service does not respond. Refer to Parallels technical support for help.
The service cannot be started because of empty monitrc:
~# ls -l /usr/local/etc/psa/modules/watchdog/monitrc
-rwxrw—- 1 root psaadm 0 Nov 24 21:05 monitrc
~#
Which cannot be recreated since there are an error:
~# /usr/local/psa/admin/bin/modules/watchdog/wd –regen-all
/tmp/monitrc.chk:86: Error: the executable does not exist ‘mysql-server’
/tmp/monitrc.chk:87: Error: the executable does not exist ‘mysql-server’
Error occurred while building configuration file. For help, refer to technical
support.
~#
The problem is that full path to ‘mysql-server’ rc-script is not written:
~# tail +86 /tmp/monitrc.chk | head -3
with pidfile “/var/db/mysql/21.montereyinstitute.org.pid”
start = “mysql-server start”
stop = “mysql-server stop”
~#
Resolution
To resolve the problem in Parallels Plesk Panel 8.6 you should add full path to mysql in /usr/local/etc/psa/modules/watchdog/monitrc.tpl.
Save old file to monitrc.tpl.orig in the same directory:
~# cd /usr/local/etc/psa/modules/watchdog
~# cp monitrc.tpl monitrc.tpl.orig
Open file monitrc.tpl with file editor (vim) and find section “# MySQL check process mysql” in it. Change path to mysql starting scripts:
~# vi monitrc.tpl
~# diff monitrc.tpl.orig monitrc.tpl
87,88c87,88
< start = “”
< stop = “”
—
> start = “/usr/local/etc/rc.d/”
> stop = “/usr/local/etc/rc.d/”
~#
Save the file and recreate monitrc with command wd:
~# /usr/local/psa/admin/bin/modules/watchdog/wd –regen-all
Control file syntax OK
~#
After that service Watchdog should be started through {Modules -> Watchdog -> Enable}.
The problem does not exists for Parallels Plesk Panel 9.
Valid path to scripts mysql_start and mysql_stop is set in monitrc.tpl.
Posted by We3cares
Posted by We3cares
Posted by We3cares