The system can be configured to run scripts when object properties are changed. The change event script is also run when an object is created, but not when an object is deleted.
Scripts associated with object types are often used to perform lookups in external data sources and return data from these sources. For examples of change event script interfaces, refer to Script interfaces.
Change events are displayed in the Change events section of the Event hooks data grid, which can be accessed from the Configuration tab of the Admin page.
Adding a change event
To add a change event:
- On the Admin page, select the Configuration tab.
- Select Event hooks in the left sidebar.
- In the Change events section, select + Add.
- In the dialog, select the Object type, e.g., zone, from the dropdown.
- Select the script in the Script name dropdown.
It's assumed that the script is located in the scripts folder in Micetro Central’s data folder.
- If you want to pass a temporary ScriptRunner password to the script as a command line argument, check the Add ScriptRunner authentication paramaters checkbox. For more information, refer to Using the ScriptRunner.
- Select Add.
Editing and removing change events
Micetro enables you to manage change events as needed, e.g., if you need to modify or remove a change event.
To edit a change event:
- Navigate to .
- In the Change events section, locate the change event you want to edit.
- Use the Row … menu to selectEdit.
- In the dialog, make the necessary changes to the event.
- Select Save
To remove a change event:
- Navigate to .
- In the Change events section, locate the change event.
- Use the Row … menu to select Remove.
- In the confirmation dialog, select Remove.