• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Issue Spamassasin not monitored

Thomas Wilhelmi

Regular Pleskian
Hello,

I upgraded from 17.0 (last version) to 17.5.3 on Ubuntu 16.04.

My SpamAssassin is running but not monitored and I get the following entries in the logfile:

Jun 23 23:03:19 h2504000 monit[3614]: 'psa_spamassassin' failed to start
Jun 23 23:03:19 h2504000 monit[3614]: 'psa_spamassassin' process is not running
Jun 23 23:03:19 h2504000 monit[3614]: 'psa_spamassassin' trying to restart
Jun 23 23:03:19 h2504000 monit[3614]: 'psa_spamassassin' start: /opt/psa/admin/bin/spammng

How can I solve this?

BR,
Willi
 
Hi Thomas Wilhelmi,

did you consider to stop/start "psa-spamassassin" over the command line?
Code:
/etc/init.d/psa-spamassassin stop

/etc/init.d/psa-spamassassin start
 
Hi Thomas Wilhelmi,

did you consider to stop/start "psa-spamassassin" over the command line?
Code:
/etc/init.d/psa-spamassassin stop

/etc/init.d/psa-spamassassin start
Yes, but I used the commands from the Watchdog-Entry:

/opt/psa/admin/bin/spammng --stop
/opt/psa/admin/bin/spammng --start

and I even rebootet the server
 
Hi,

if someone else has the same issue:

In the file /usr/local/psa/etc/modules/watchdog/monitrc.tpl the monitored Pid-File is mentioned. Here we see that the file /var/run/spamd.pid is monitored:

# SpamAssassin
check process psa_spamassassin
with pidfile "/var/run/spamd.pid"
start = "<psa_spamassassin_start>"
stop = "<psa_spamassassin_stop>"
if failed host localhost port 783 <spamassassin_protocol_check> with timeout <psa_spamassassin_connection_timeout> seconds then restart
if <psa_spamassassin_timeout_restarts> restarts within <psa_spamassassin_timeout_cycles> cycles then timeout
every <psa_spamassassin_cycles> cycles
mode <psa_spamassassin_mode>

but the Pid-File Spamassassin creates is /var/run/spamassassin.pid. Now we have 2 Options:

1. go to the path /var/run and run the following command: ln -s spamassassin.pid spamd.pid

or

2. Change the mentioned config-file Monitor.tpl so it has the following lines:
# SpamAssassin
check process psa_spamassassin
with pidfile "/var/run/spamassassin.pid"
start = "<psa_spamassassin_start>"
stop = "<psa_spamassassin_stop>"
if failed host localhost port 783 <spamassassin_protocol_check> with timeout <psa_spamassassin_connection_timeout> seconds then restart
if <psa_spamassassin_timeout_restarts> restarts within <psa_spamassassin_timeout_cycles> cycles then timeout
every <psa_spamassassin_cycles> cycles
mode <psa_spamassassin_mode>

Good luck :)
 
Back
Top