The PowerShell Probe executes an arbitrary PowerShell script. It offers carte blanche to check any aspect of system health or performance that may be needed, but it also requires expertise and experimentation to configure.
A PowerShell probe is automatically considered to have failed if any element of the script writes output on the error stream.
Whatever object is written last to the Output stream is assigned as the Value and considered by the Fail Rule. It is strongly recommended to return simple .NET types as the last element (such as boolean, int, or string). This will ensure that serialization errors don't occur in saving the health check.
The PowerShell probe supports remoting, but it is almost always simpler to create a local Panel Service installation.
Settings
Script – PowerShell script to execute
Use PS Remoting – Whether to consider the following fields to configure remoting
Host – Remote host
User & Password – Optional remoting credentials
Auth Mechanism – Remoting auth mechanism
URI – Remoting URI, default /wsman
Schema URI – Remoting schema URI, default http://schemas.microsoft.com/powershell/Microsoft.PowerShell
Use SSL – Whether to use SSL for remoting connection
Port – Remoting Port, default 5985
Operation Timeout Seconds – Remoting timeout, default 240
Max Redirect – Remoting redirect limit, default 3
Fail Rule – Rule to evaluate final object returned by probe
Comments
0 comments
Please sign in to leave a comment.