Include snapshots in event data sent to scripts #9730

Closed
opened 2025-12-29 21:21:43 +01:00 by adam · 1 comment
Owner

Originally created by @Mailstorm-ctrl on GitHub (May 23, 2024).

Originally assigned to: @DanSheps on GitHub.

NetBox version

v4.0.3

Feature type

Change to existing functionality

Proposed functionality

When you set up an event rule and send it to a webhook, the webhook data will include snapshots of pre and post change items of the object. However, when you change to script, you lose the snapshots that made some additional logic possible with webhooks.

I think it would be beneficial if data received to a script contained the same information as a webhook would receive.

Use case

If you wanted to use pre-change data in a script, you'd have to get that prechange data yourself. Not the end of the world but an unnecessary step. My use case is when adding a tag to a device, it gets added to NAGIOS. The pre and post change fields determine exactly what I need to do without unnecessary API calls to nagios (Checking to see if device exists in nagios or not + other data in nagios)

Database changes

None

External dependencies

No response

Originally created by @Mailstorm-ctrl on GitHub (May 23, 2024). Originally assigned to: @DanSheps on GitHub. ### NetBox version v4.0.3 ### Feature type Change to existing functionality ### Proposed functionality When you set up an event rule and send it to a webhook, the webhook data will include snapshots of pre and post change items of the object. However, when you change to script, you lose the snapshots that made some additional logic possible with webhooks. I think it would be beneficial if data received to a script contained the same information as a webhook would receive. ### Use case If you wanted to use pre-change data in a script, you'd have to get that prechange data yourself. Not the end of the world but an unnecessary step. My use case is when adding a tag to a device, it gets added to NAGIOS. The pre and post change fields determine exactly what I need to do without unnecessary API calls to nagios (Checking to see if device exists in nagios or not + other data in nagios) ### Database changes None ### External dependencies _No response_
adam added the status: duplicate label 2025-12-29 21:21:43 +01:00
adam closed this issue 2025-12-29 21:21:43 +01:00
Author
Owner

@DanSheps commented on GitHub (May 27, 2024):

Duplicate of #14884

@DanSheps commented on GitHub (May 27, 2024): Duplicate of #14884
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9730