This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Clickatell - SMS Gateway - Node Disk Alert

Clickatell - SMS Gateway - Node Disk

This article shows how to setup this script as an alert action. Please take time to review the main overview article if you have not already done so: Clickatell - SMS Gateway - Alert Overview. The main overview article contains information necessary to completely setup this script.

This script is specifically designed for node based alerts.

7.png

In the Trigger Actions I added 'Execute an External Program' action.

1.png

This is the full text in the 'Network path to external program' field.

C:\windows\system32\windowspowershell\v1.0\powershell.exe -ExecutionPolicy unrestricted -command "<C:\path\to\script>\Clickatell_Alert_Trigger_Action_Node_Disk.ps1 '${N=SwisEntity;M=Node.DisplayName}' '${N=SwisEntity;M=DisplayName}' '${N=SwisEntity;M=VolumePercentUsed}' '${N=SwisEntity;M=Node.PercentMemoryUsedThreshold.Level1Value}' '${N=SwisEntity;M=Node.PercentMemoryUsedThreshold.Level2Value}' '${N=Generic;M=DateTime;F=OriginalValue}'"

**You will need to update the <C:\path\to\script> in the above line to the location that you have the script saved.**

I'm passing in the following Orion variables:

  • Node Name: ${N=SwisEntity;M=Node.DisplayName}
  • Volume Name: ${N=SwisEntity;M=DisplayName}
  • Volume Percent Used: ${N=SwisEntity;M=VolumePercentUsed}
  • Volume Warning Value Reached: ${N=SwisEntity;M=Node.PercentMemoryUsedThreshold.Level1Value}
  • Volume Critical Value Reached: ${N=SwisEntity;M=Node.PercentMemoryUsedThreshold.Level2Value}
  • Orion Date/Time: ${N=Generic;M=DateTime;F=OriginalValue}

Once that alert action is completed then copy it to Reset Actions.

8.png

Finish editing the alert and you should be done.

**Change log**

  • 2016-04-04 : Initial release
Clickatell_Alert_Trigger_Action_Node_Disk.ps1