My powershell application monitor scripts are fine within the PS ISE and the output they produce is correct in Solarwinds however even when specifying an EXIT 0 I get an 'unknown' status and so it appears as though it is failing to see the exit codes. I've even done a completely basic script with:
Write-Host "Message.Erroring: No";
Write-Host "Statisic.Erroring: 0";
Exit 0;
When testing in the Solarwinds editor the output is as expected except 'get output' failed for the result:
Output Result:
Get Output Failed:
Output: ==============================================
Message.Erroring: No
Statisic.Erroring:0
Can anyone suggest anything?