TITLE:
Update Watchdog configuration for Spamassassin (Ubuntu 16.04)
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Plesk 17.5 for Linux
Ubuntu 16.04
PROBLEM DESCRIPTION:Ubuntu 16.04
The watchdog configuration for Spamassassin on Ubuntu 16.04 contains an outdated file name for Spamassassin's PID file. Thus, Watchdog cannot find the PID file and assumes that Spamassassin is not running even though it is.
The file name needs to be changed from spamd.pid to spamassassin.pid.
This issue is also reported in Issue - Spamassasin not monitored.
STEPS TO REPRODUCE:The file name needs to be changed from spamd.pid to spamassassin.pid.
This issue is also reported in Issue - Spamassasin not monitored.
1. Install Ubuntu 16.04 & Plesk 17.5
2. Setup Plesk to use Postfix & Spamassassin
3. Install the Watchdog Add-On & Enable it
4. Wait for some time and check the Watchdog page on Plesk panel or check the admin e-mails...
ACTUAL RESULT:2. Setup Plesk to use Postfix & Spamassassin
3. Install the Watchdog Add-On & Enable it
4. Wait for some time and check the Watchdog page on Plesk panel or check the admin e-mails...
Plesk should announce Spamassassin as not running...
EXPECTED RESULT:Spamassassin is reported as running.
ANY ADDITIONAL INFORMATION:Make sure that /opt/psa/etc/modules/watchdog/monitrc contains the correct filename.
Current config (outdated):
# SpamAssassin
check process psa_spamassassin
with pidfile "/var/run/spamd.pid"
start = "/opt/psa/admin/bin/spammng --start"
stop = "/opt/psa/admin/bin/spammng --stop"
if failed host localhost port 783 send "PING SPAMC/1.2\r\n\r\n" expect "SPAMD/[0-9]+(\.[0-9]+)* 0 PONG" with timeout 180 seconds then restart
if 1000 restarts within 1000 cycles then timeout
every 1 cycles
mode active
New config (recommended change):
# SpamAssassin
check process psa_spamassassin
with pidfile "/var/run/spamassassin.pid"
start = "/opt/psa/admin/bin/spammng --start"
stop = "/opt/psa/admin/bin/spammng --stop"
if failed host localhost port 783 send "PING SPAMC/1.2\r\n\r\n" expect "SPAMD/[0-9]+(\.[0-9]+)* 0 PONG" with timeout 180 seconds then restart
if 1000 restarts within 1000 cycles then timeout
every 1 cycles
mode active
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:Current config (outdated):
# SpamAssassin
check process psa_spamassassin
with pidfile "/var/run/spamd.pid"
start = "/opt/psa/admin/bin/spammng --start"
stop = "/opt/psa/admin/bin/spammng --stop"
if failed host localhost port 783 send "PING SPAMC/1.2\r\n\r\n" expect "SPAMD/[0-9]+(\.[0-9]+)* 0 PONG" with timeout 180 seconds then restart
if 1000 restarts within 1000 cycles then timeout
every 1 cycles
mode active
New config (recommended change):
# SpamAssassin
check process psa_spamassassin
with pidfile "/var/run/spamassassin.pid"
start = "/opt/psa/admin/bin/spammng --start"
stop = "/opt/psa/admin/bin/spammng --stop"
if failed host localhost port 783 send "PING SPAMC/1.2\r\n\r\n" expect "SPAMD/[0-9]+(\.[0-9]+)* 0 PONG" with timeout 180 seconds then restart
if 1000 restarts within 1000 cycles then timeout
every 1 cycles
mode active
Confirm bug