This article was updated to support v11.7.8 of Goliath Performance Monitor.
When launches fail, remediation actions can be executed which will run a custom program, batch, or command file. PLEASE NOTE: A Goliath Agent must be installed on the server/endpoint where the remediation will take place.
- Check the box for “run program”. When checked and alert conditions have been met, the program, Powershell script, batch, or command file name specified in the Program Name field is executed either on the Goliath Server, the monitored server or a different server.
- Use the drop-down menu to select the appropriate option in the “At” field to choose to run the remediation action at the Goliath Server, at the monitored server (launch endpoint), a different server, or check the box to to restart the Monitored Server (launch endpoint).
- In the “Program Name” field, define the name of the program, Powershell, command line, batch file, etc to be opened when the alert triggers. This must be a fully qualified program name path. In order to access the network share, the agent must have rights to the share. Additional Examples:
- Powershell: C:\Windows\sysnative\WindowsPowerShell\v1.0\powershell.exe
- Command of Bath file: C:\Windows\system32\cmd.exe
- Executable: \\10.2.1.1\c$\scripts\alerts.exe
- In the “Program Args” field, define an 'Argument' string passed to the program, batch, or command file named in the Program Name field when executed. The 'Argument' string text supports "macro substitution" based on macro parameters listed below. The parameters are case sensitive and must be upper case. You can find these macros in the Appendix. Examples:
- Powershell: -ExecutionPolicyBypass -File "C:\Program Files\MonitorIT\Scripts\ps1"
- Command: net stop Spooler
- Batch File: reboot.bat
- The optional username and password is where you would, if necessary,define a user that the Goliath Agent will use to run the remediation. This username must be in the form of domain\user
- Set the “Show Program Window” check box to have the remediation actions appear on the screen or uncheck to run the remediations in the background; hidden.
- Press the “Test Program” button to test the remediation execution. The test will only process the Program Args macros, if any, and will return a message.
Macros for Program Arguments
The parameters are case sensitive and must be upper case.
- &N: which is replaced by the name of the server/device causing the alert
- &A: which is replaced by the IP Address of the server/device causing the alert
- &W: which is replaced by the name of the Monitoring Rule
- &S: which is replaced by the Status message associated with this failure causing the alert status information is source dependent and differs based upon the watch type.
- For Example:
- GAAM: The full launch details log
- For Example:
- &D: which is replaced by the date of the alert
- &T: which is replaced by the time of the alert
- &P: which is replaced by the Server/Device Description
- &O: which is replaced by the Server/Device Notes
- &G: which is replaced by the name of the Group that the Server/Device belongs
- &C: which is replaced by the Group Description
- &R: which is replaced by the launch ‘Description’ text
- &L: which is replaced by the for the launch ‘Severity’ level
- &E: which is replaced by the for the launch Rule Notes
- &V: (only for CounterWatch)