Jump to content

Recommended Posts

Posted

Hi.

I know that as RRAS module has been discussed earlier in this forum.

But it would be really nice with a simple module to start with, og som ideas on how to set some monitoring up today.

We have found the PowerShell Cmdlet "Get-RemoteAccessHealth" that returns the status for alle components.
We would like to raise a notification if the HealtState on any components is different from Disabled or OK.

Anny ideas?

Best Regards,

Martin Stevnhoved

 

PS C:\> Get-RemoteAccessHealth

Component            RemoteAccessServer   HealthState     TimeStamp            Id              OperationStatus
---------            ------------------   -----------     ---------            --              ---------------
Server               localhost            OK              17-11-2015 08:06:37
6to4                 localhost            Disabled        17-11-2015 08:01:41
Vpn Addressing       localhost            OK              17-11-2015 08:01:41
Network Security     localhost            OK              17-11-2015 08:01:41
Dns                  localhost            OK              17-11-2015 08:06:37
IP-Https             localhost            OK              17-11-2015 08:01:41
Nat64                localhost            OK              17-11-2015 08:01:38
Dns64                localhost            OK              17-11-2015 08:01:37
IPsec                localhost            OK              17-11-2015 08:01:37
Kerberos             localhost            OK              17-11-2015 08:01:37
Domain Controller    localhost            OK              17-11-2015 08:01:54
Management Servers   localhost            OK              17-11-2015 08:06:37
Network Location ... localhost            OK              17-11-2015 08:06:37
Otp                  localhost            Disabled        17-11-2015 08:01:37
High Availability    localhost            Disabled        17-11-2015 08:01:37
Isatap               localhost            Disabled        17-11-2015 08:01:37
Vpn Connectivity     localhost            OK              17-11-2015 08:01:37
Teredo               localhost            Disabled        17-11-2015 08:01:37
Network Adapters     localhost            OK              17-11-2015 08:01:37
Services             localhost            OK              17-11-2015 08:06:37

  • Staff
Posted

Hi Martin,

Apparently the 'Get-RemoteAccessHealth' is only available for Windows Server 2012 or higher so this is not a very feasible solution, we did note it on a todo and it will be considered for a future release.

Chris

Posted

I would like to see it as a build in function, but for now we have set up a scheduled task, with this script:
______________

@echo off

set log=MonitorRRAS.txt
set level=0

pushd "%~dp0"

echo RemoteAccess Health State on '%computername%' >"%log%"
powershell -Command "get-remoteaccesshealth" >>"%log%"

find /i "warning" "%log%" >nul
if "%errorlevel%"=="0" set level=2

find /i "error" "%log%" >nul
if "%errorlevel%"=="0" set level=3

if "%level%"=="0" goto skip
  notificationbridge.exe -p %level% -f "%log%"
:skip

popd

 

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...