Notify on cron script failures

Can I be notified on cron script failures in the ping URL itself?

Yes, if a failure occurs inside the script and you want to be notified with a status change (Down, Trouble, Critical) in the cron monitor, use the new "/event" endpoint.
  1. To mark the cron monitor as Trouble:
    "https://plus.site24x7.com/cron/<apikey>/<monitor name>/event?status=2&msg=some message or reason"
  2. To mark the cron monitor as Down:
    "https://plus.site24x7.com/cron/<apikey>/<monitor name>/event?status=0&msg=some message or reason"
  3. To mark the cron monitor as Critical:
    "https://plus.site24x7.com/cron/<apikey>/<monitor name>/event?status=3&msg=some message or reason"
Once the script fails, you will also get email alerts for the monitor status change with the error reason that you send in the "msg" param. The "/event" endpoint will send the email alerts.

    • Related Articles

    • How to increase the Script Execution Timeout value for plugins

      If a plugin's script execution time exceeds the Script Execution Timeout value configured in Site24x7, it could result in errors during plugin installation or disrupt the polling for existing plugin monitors. In such cases, you need to extend the ...
    • Customize URL names using PHP agent API

      With APM Insight PHP agent, you can customize URL names for your web transactions.  Here's how you can do it: Open the PHP script of the transaction for which you want to customize the URL. Add the following snippet in any part of the PHP script ...
    • URL Check

      URL check is used to monitor URL's on the local machine where a server monitor is installed. The check fails when the configured URL is not available. Only local URLs can be monitored. The local URLs can be configured in the following ways. ...
    • Getting notified on IP updates

      For an uninterrupted monitoring experience, IP addresses of Site24x7's monitoring locations should be whitelisted in your firewall policy. During any IP related update, Site24x7 will usually notify you via the methods listed below: You'll be promptly ...
    • Troubleshooting bulk installation failures of the APM Insight .NET agent

      You can perform a bulk installation during the .NET agent installation. If the bulk installation fails, it could be due to one of the following reasons: Error message/Issue Troubleshooting tip Network connectivity failure Ensure all machines within ...