Dear kevingmeier
There is no dedicated PRTG sensor, however you could use an Exe/Script Advanced sensor with a powershell script:
Param(
$server
)
$servicehealth = invoke-command -computer $server {Get-RemoteAccessHealth -verbose | Where {$_.HealthState -ne "Disabled"}} | select component, healthstate
$prtg = '<?xml version="1.0" encoding="Windows-1252" ?>
<prtg>
'
$servicehealth | %{
$state = switch ($_.healthstate)
{
"Disabled" {0}
"OK" {1}
"Error" {2}
"Warning" {3}
"Unknown" {4}
}
$prtg +=" <result>
<channel>$($_.component)</channel>
<value>$($state)</value>
<unit>custom</unit>
<customunit>state</customunit>
<showChart>1</showChart>
<showTable>1</showTable>
<valuelookup>prtg.microsoft.RemoteAcccesshealthstate</valuelookup>
</result>
"
}
$prtg +=" <text>OK</text>
</prtg>"
$prtg
The channels then need the according lookup file prtg.microsoft.RemoteAcccesshealthstate.ovl in the \lookups\custom subfolder:
<?xml version="1.0" encoding="UTF-8"?>
<ValueLookup id="prtg.microsoft.RemoteAcccesshealthstate" desiredValue="1" undefinedState="Warning" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PaeValueLookup.xsd">
<Lookups>
<SingleInt state="None" value="0">
disabled
</SingleInt>
<SingleInt state="OK" value="1">
OK
</SingleInt>
<SingleInt state="Error" value="2">
Error
</SingleInt>
<SingleInt state="Warning" value="3">
warning
</SingleInt>
<SingleInt state="None" value="4">
unknown
</SingleInt>
</Lookups>
</ValueLookup>
To make the ovl file effective, please go to Setup / System Administration / Administrative Tools, and reload the lookups.
Please note that we provide this content as is, with no further technical support. To monitor the CA server, you could monitor those services, and the HTTPS server with another sensor. You can could create a Business Process Sensor to create a consolidated view.
Add comment