New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Howto Log incoming VPN Connections Windows Server 2012

Votes:

0

Your Vote:

Up

Down

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.

incoming logging prtg vpn

Created on Feb 26, 2014 10:04:30 AM by  m4uri (0) 1



2 Replies

Votes:

0

Your Vote:

Up

Down

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.

Created on Feb 27, 2014 8:41:38 AM by  Torsten Lindner [Paessler Support]



Votes:

0

Your Vote:

Up

Down

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

Created on Sep 19, 2014 6:57:18 AM by  AXS ict (0)



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.