Dear all,
I've tried to create powershell script for monitoring SAM with below script but its still shown as 'Get Output Failed'
may you suggest me please
Your output does not appear to be properly formatted.. Your "Write-Host $FolderSizeOutput" should be "Write-Host Statistic:$FolderSizeOutput". For more Details see the following section of the Administrators Guide here -> SolarWinds Online Help
Hi aLTeReGo,
I've corrected format as your suggest but I've more problem on below.
and here is my tested script.
The Statistic value must be numeric only. You are passing units with the value which are non-integer. Remove the "GB" from the from Statistic value returned and it should work. If you want to retain the units, then I suggest using the optional message field.
Detail Type
Required
Meaning
Statistic
Yes
A numeric value used to determine how the monitor compares to its set thresholds. This must be an integer value, (negative numbers are supported).
Statistic.Name1: 123
Statistic.Name2: 456
Message
No
An error or information message to be displayed in the monitor status details. Note: Multi-line messages are supported. To use this functionality, print each line using a separate command. For example:
Message.Name1: abc
Dear,
Its work!!! Thank you very much for your help