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

    • 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 ...
    • Open/Import web script to Web Transaction (Browser)

      A web script is a file that contains all the transactions recorded using the Site24x7 Web Transaction (Browser) tool.  To open web script to the Web Transaction (Browser) tool,f you've recorded the script using the Site24x7 Web Transaction (Browser) ...
    • The endpoint URL formats supported by SOAP web services monitor

      Site24x7 web services monitor supports the following endpoint URL formats: asmx format .svc format