In Flashduty On-call
You can get the integration push URL in either of the following ways.
Use a dedicated integration
- In the Flashduty console, select Channel and open a channel
- Select Configuration → Integrations → Private integration, then click Add an integration
- Select Site24x7 and click Save
- Open the new integration card and copy the Push URL
Use a shared integration
- In the Flashduty console, select Integration Center → Alert Events
- Select Site24x7 and enter an integration name
- Configure the default route and select a channel. After creation, you can add more rules under Routes
- Click Save and copy the generated Push URL
Configure Site24x7
1
Add a Webhooks integration
- Log in to Site24x7 and go to Admin → Third-Party Integrations → Integrations
- Find Webhooks in the integration list and click Integrate Now (if integrations already exist, click Add Third-Party Integration at the top right first to open that list)
- Set Integration Name to
Flashduty - Paste the complete Flashduty integration push URL, including
integration_key, into Hook URL
2
Set the request method and body
- Set HTTP Method to POST
- Select Post as JSON
- Select Send Incident Parameters. Site24x7 then puts incident parameters such as
MONITOR_ID,MONITORNAME, andSTATUSinto the JSON request body - Leave Authentication Method empty. Flashduty authenticates the request by the
integration_keyin the push URL
3
Choose monitors and trigger statuses
- Under Integration Level, choose what to send: specific Monitors, Tags, Monitor Groups, or All Monitors
- Under Tags to Be Sent With Alerts, optionally choose the tag keys to send with alerts. If you choose none, all tags of the monitor are sent
- Under Trigger Alerts for Monitor Status Change, select the statuses to notify on. Selecting Down, Trouble, and Critical is recommended
- Click Save
4
Verify the alert lifecycle
Put a monitor into Down for real, for example by pointing it at an unreachable address for a while, and confirm that Flashduty receives an active alert. Then let it return to Up and confirm that the same alert recovers. The test alert sent by Save and Test only proves that the push URL is reachable. Use a real monitor status change to verify that alerts group and recover correctly.
The test alert is a
DOWN notification for a fixed sample monitor (MONITOR_ID 123456, named [Site24x7 Test Alert] Zylker Monitor), so Flashduty opens a Critical alert for it. Site24x7 never sends an Up notification for this monitor, so close that alert in Flashduty manually.Alert Key
Flashduty uses the Site24x7 monitor ID as the Alert Key. It takes
MONITOR_ID first and, when that is missing, extracts the ID from MONITOR_DASHBOARD_LINK (for example .../home/monitors/<monitor ID>/Summary). The Down, Trouble, Critical, and Up notifications of one monitor all carry the same monitor ID, so they are grouped into the same alert and the Up notification recovers it.
Changes to STATUS, the monitor name, the incident reason, the failed locations, or the time do not change the Alert Key.
Status and severity mapping
Requests with an empty
STATUS are rejected.
Alert labels
Flashduty writes the following incident parameters to alert labels for filtering and troubleshooting:
The alert title comes from
MONITORNAME and the alert description from INCIDENT_REASON.
Troubleshooting
- Site24x7 reports an integration failure: Make sure the Hook URL is complete, includes
integration_key, and uses POST - Flashduty returns a parameter error: Make sure Post as JSON and Send Incident Parameters are both selected and the request body contains
MONITOR_IDandSTATUS - The alert does not recover: Make sure the monitor is within the scope selected in Integration Level and has actually returned to Up