Hi, I'm new to opmanager and am trying to understand the workings of the custom scripts feature. I tried to write a simple script for
triggering the threshold condition, but it doesn't seem to work. I'm not sure what needs to be done exactly. Could someone point me in the right direction?
Note: The website won't let me post the images, so here is the sample code. Also, the threshold value is 3 and the first trigger is set to go off when the current value = threshold value = 3.
Command Line: cmd /c powershell.exe -ExecutionPolicy RemoteSigned .\${FileName}.ps1
Body:
$CURRENTVALUE = 3
Write-Host "Current Value is $CURRENTVALUE"
#Setting current value to 3 to trigger first condition