I have the maintenance script running / being called by our web hosting but the email is not completing or sending. This did initially work but now it has stopped with no changes to the environment.
It’s not trying to send any email alerts. You’d get output under the Email Alerts heading if it were.
Check the Global On/Off setting for email alerts in the CMS settings, and then check the email alerts option for each display you want to monitor.
In addition, you really should run maintenance in protected mode, with a key, so that it can’t be called more frequently than you intend by a third party, as some of the routines run in that script are fairly CPU intensive for the CMS. We generally recommend running it every 5 minutes as a sensible interval.
Notice
This email and any attachments are confidential. They may contain
privileged information or copyright material. If you are not an intended
recipient, you should not read, copy, use or disclose the contents without
authorisation and we request you contact us at once by return email. Please
then delete the email and any attachments from your system. We do not
accept liability in connection with computer viruses, data corruption,
delay, interruption, unauthorised access or unauthorised amendment. Any
views expressed in this email and any attachments do not necessarily
reflect the views of the company.
Notice
This email and any attachments are confidential. They may contain
privileged information or copyright material. If you are not an intended
recipient, you should not read, copy, use or disclose the contents without
authorisation and we request you contact us at once by return email. Please
then delete the email and any attachments from your system. We do not
accept liability in connection with computer viruses, data corruption,
delay, interruption, unauthorised access or unauthorised amendment. Any
views expressed in this email and any attachments do not necessarily
reflect the views of the company.
I had the same problem. Playing around with the maintenance script and found it was the following if statement that was causing the problem - if ($displayGoneOffline || $alwaysAlert). There isn’t a else statement to catch displays that are offline without always alert disabled.
Setting Send Repeat Display Timeouts to On sorted out it out for me.
You’ll only get an actual email sent when the display transitions between online and offline or offline and on - unless you have always alert turned on, but then you’ll get an email every time maintenance is run when a display is down - which is pretty antisocial.
In your case, the display was already offline, so no alert is sent, since there was no transition.