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

    • 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 ...
    • How do I check if URL redirection works correctly using the Website Monitor?

      A webpage can be made available from more than a single web address using URL redirection. Most redirects are automated and it becomes difficult to track if the redirection works in a specific way. This can be verified using website monitoring in ...
    • What are Basic and Advanced Monitors?

      Site24x7 licensing and pricing work based on the monitor type categorization. For the ease of usage and based on the complexity of monitoring, we have categorized Site24x7 monitors as Basic Monitors and Advanced Monitors. We typically charge for a ...
    • Amendments to Site24x7 Monitor Names

      We've recently renamed a few of our Monitors to help keep in sync with the current IT and DevOps trends. The new monitor names are designed to correctly resonate with the IT & DevOps crowd. We've made necessary changes in the Web client, Help ...
    • How is the basic and advanced monitor count calculated in the Site24x7 web client?

      Site24x7 licensing and pricing works based on the type of monitor. Monitors are classified as basic and advanced monitors. The Super Admins can view a detailed breakdown of license usage with License Usage Summary. The monitors in your Site24x7 ...