How to use Powershell for a custom check in Servers Alive In Servers Alive you can use an external program as a check. This external program could be your own Powershell script. This howto explains how to do this.
$RemoteServer=$args[0]
$RefValue=1
$Value=Invoke-Command -computername $RemoteServer -ScriptBlock {(get-itemproperty "HKLM:\SOFTWARE\Microsoft\Microsoft Data Protection Manager\Agent\2.0").Forcefixup}
if ($Waarde -eq $RefValue)
{
write-host "OK. Value ForceFixup is $Value. "
exit 0
}
else
{
write-host "Error. Value ForceFixup is $Value, must be $RefValue."
exit 1
}
Program Features What's new in v10.x? Download Document Collection Template examples |
Free add-ons License Agreement Prices from 199 EURO Different editions |
Now it's being used for the Womens World Cup 99 here in the United States. It's monitoring the machines (ping) and the Sybase SQL Server ports as well as routers. From here in Colorado, I'm able to know what's up or down at 8 cities (40+ hosts/processes), usually before they know it's down."
Bob Thiele
EDS