In Flashduty On-call
- In the Flashduty console, go to Integration Center → Change Events
- Select NetBox and enter an integration name
- To assign changes to specific channels, add rules under the integration’s Routes that match labels such as
object_typeoractor - Click Save and copy the generated Push URL
Configure NetBox
This page is based on the default webhook body of NetBox 4.7.
1
Create a webhook
- Go to Operations → Integrations → Webhooks and click Add
- Name: enter a recognizable name, such as
Flashduty - URL: paste the full push URL from the Flashduty integration
- Set HTTP method to
POSTand keep HTTP content type asapplication/json - Leave Body template empty to use NetBox’s default body, and leave Additional headers empty
- Leave Secret empty; Flashduty authenticates with the
integration_keyin the push URL
2
Create an event rule
- Go to Operations → Integrations → Event Rules and click Add
- Name: enter an identifiable name, such as
Flashduty - Object types: select the object types to sync, such as
DCIM > site,DCIM > device, orIPAM > prefix - Event types: select Object created, Object updated, and Object deleted
- To sync only some objects, add a JSON condition under Conditions, for example
{"and": [{"attr": "status.value", "value": "active"}]} - Set Action type to Webhook, select the webhook you just created for Webhook, and save
rqworker process must be running.
What one change is
A bulk operation (bulk import, bulk edit, bulk delete) changes several objects in one request and produces one change per object. They share the same
request_id label, so you can find everything one operation touched in the change list.
Status mapping
These deliveries return success but record no change:
job_startedandjob_ended: the start and end of a background job (a script, a data source sync); they are not configuration changes. Objects a script creates, edits, or deletes while running are still sent ascreated,updated, anddeleted
Change content
Labels you can route on and filter the change list by:
FAQ
Why don't I see a change?
Why don't I see a change?
- Check that the event rule is enabled, that Object types includes the object type, that Event types includes the event, and that Conditions does not exclude the object
- Check that NetBox’s
rqworkerprocess is running; failed webhook jobs are listed under System → Background Tasks, where you can re-queue them - Keep the default body: a custom Body template changes the payload format and can make deliveries fail or lose fields
Does a NetBox re-queue record a change twice?
Does a NetBox re-queue record a change twice?
No. A failed job that NetBox re-queues sends exactly the same content as the original, including the timestamp, so Flashduty treats it as a repeat and records it once.
The delivery fails with an InvalidParameter error?
The delivery fails with an InvalidParameter error?
The failed job in NetBox shows the response content:
unknown event "<value>":eventis notcreated,updated,deleted, or ajob_*event; check that no custom body is setdata.id is missing,request.id is missing,object_type is missing: the body lacks a required field; clear Body templateinvalid timestamp "<value>":timestampis not in ISO 8601 format
Why does a change have no link?
Why does a change have no link?
In NetBox webhook deliveries an object’s address is a relative path (for example
/dcim/sites/1/) with no domain, so Flashduty cannot build a full URL. Use the object type and name in the title, or the object_id label, to find the object in NetBox.Is a deletion also Done?
Is a deletion also Done?
Yes. The deletion has already taken effect in NetBox, so it is recorded as Done with the
event label set to deleted.