Add scripted commands to the default NCM alert
You can modify the default NCM advanced alert to execute specific command scripts at the time the alert is triggered. The following example adds a simple show version
command as a scripted action.
- Click Alerts & Activity > Alerts.
- Click Manage Alerts.
- Select Object Type from the Group By list, and select Node.
- Select Alert Me and Trigger an NCM Action.
- Click Duplicate & Edit.
- On Trigger Actions, click Add Action.
- Select Execute an NCM Action, and click Configure Action.
- Select Execute Config Script, and enter a command in Command Script to Execute.
For example:
show version
When executed, this command runs on the context node, receives detailed software and hardware information, and includes it in the
${Notes}
macro of a SolarWinds Platform database alerts table. - Click Add Action.
- Drag the new action into the desired position in the list.
By default, the software positions a new action at the end of the action list. In this case, it makes sense to position this action third, after NCM backs up the running config and determines the last config changes.
- Click Summary.
- On Summary, review and edit settings. We recommend enabling Alert Integration.
- Click Submit.