Scheduled notifications are not sent to email indicated in the task settings

Created:

2016-11-16 12:43:05 UTC

Modified:

2017-08-16 17:10:15 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Scheduled notifications are not sent to email indicated in the task settings

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Option Send to the default email or Send to the email I specify is set in Websites & Domains > Scheduled Tasks or globally in Tools and Settings > Scheduled Tasks , but scheduled notifications are not sent.

Scheduled task does not have any output to STDOUT or STDERR streams.

Cause

Plesk uses cron daemon to perform scheduled tasks and, by default, cron daemon does not send an e-mail if task does not return any output to STDOUT or STRERR streams.

As it is stated in Plesk 12.5 or later interface:

Notifications with Errors only status will be sent if notifications contain the standard error stream of the command only. If the stream is empty, no notification will be sent. Notifications with Every time status will be sent if notifications contain the command output. If the output is empty, no notification will be sent:

alttext

Resolution

Modify the scheduled task, so that it generates any output. For example:

<scheduled_command> | echo "Scheduled task executed successfully"

This way, after its execution, "Scheduled task executed successfully" text will be propagated to STDOUT and an e-mail notification will be sent.

Note: option Run Now is intended for test purpose and does not send a notification, even if the notification contains the output. An email is sent when the task was executed automatically only.

Have more questions? Submit a request
Please sign in to leave a comment.