Disable successful Cron Daemon notifications?
Hi, I receive these emails daily from (Cron Daemon):
Cron (/usr/local/cpanel/scripts/fix-cpanel-perl; /usr/local/cpanel/scripts/upcp --cron)
As I have forwarded all the *@domain to my email.
I've read it's possible to remove the email notification completely with adding:
> /dev/null 2>&1
to:
28 0 * * * /usr/local/cpanel/scripts/upcp --cron
But is it possible to just disable the email notifications if it is successful, so if it fails we can receive an email about it.
Maybe the option is in the Contact Manager in WHM?
Thanks
-
run crontab -e and at the top of that file, insert MAILTO="" That will disable all email notifications for the root crons. 0 -
But I won't get a notification then if it fails? I only want an email notification if it fails (some error occurs), not if it's successful and no error occurs. 0 -
According to the docs, there is a separate alert for Update Failures in Contact Manager: Contact Manager - Version 74 Documentation - cPanel Documentation [QUOTE] cPanel Update Failures | The cPanel & WHM system fails to update.|upcp/UpdateNowFailed.*.tmpl
Even if you disable cPanel updates themselves, upcp --cron will run and spit out the email.0 -
Ok, so just to be clear, if I change my cronjob from: 28 0 * * * /usr/local/cpanel/scripts/upcp --cron to: 28 0 * * * /usr/local/cpanel/scripts/upcp --cron > /dev/null 2>&1 That will disable the Cron Daemon emails, but if the script fails the Contact Manager will send me another email notifying me? 0 -
Hello @N Webber That is correct! The contact manager is separate from the cron daemon. 0
Please sign in to leave a comment.
Comments
5 comments