Hi,
is it possible to log incoming VPN/RRAS Connections with paessler ? we just want to monitor who has connected at which time to a specified server ( windows server 2012 ).
if this is possible, can somebody explain that to us in detail ?
thx alot.
Article Comments
I created this Powershell script to monitor current VPN connections.
Try {
$rras = Get-RemoteAccessConnectionStatisticsSummary } Catch [system.exception] { } Finally { $myxml = '<prtg>' + "`n" + '<result>' + "`n" + '<channel>TotalVPNConnections</channel>' + "`n" + '<value>' + $rras.TotalVpnConnections + '</value>' + "`n" + '</result>' + "`n" + '<result>' + "`n" + '<unit>Custom</unit>' + "`n" + '<Customunit>MB</Customunit>' + "`n" + '<VolumeSize>MegaByte</VolumeSize>' + "`n" + '<Float>1</Float>' + "`n" + '<channel>Total Bytes In Out</channel>' + "`n" + '<value>' + ($rras.TotalBytesInOut/(1024*1024)) + '</value>' + "`n" + '</result>' + "`n" + '<result>' + "`n" + '<channel>TotalCumulativeConnections</channel>' + "`n" + '<value>' + $rras.TotalCumulativeConnections + '</value>' + "`n" + '</result>' + "`n" + '</prtg>' $myxml }
I use the Invoke method if is it on a remote server
$xmlresult = Invoke-Command -ComputerName <<COMPUTERNAME>> -FilePath "C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML\rras-connections.ps1" $xmlresult
Sep, 2014 - Permalink
Hello,
thank you very much for your KB-Post. I'm very much afraid there are no native sensors in PRTG to count RRAS-/VPN-Connections onto a Windows server. I'm sure though there are Performance Counters / WMI Classes that can be monitored to gather such information. Then you could use the according custom sensors:
best regards.
Feb, 2014 - Permalink