From a resource perspective, which is better to use from a PRTG server, SSH or Powershell?

I have the option to write a script running from a Linux server via SSH or a Powershell from PRTG to a remote Windows server. It's for checking group membership in AD.

It seems like running a Linux script remotely via SSH would be less intensive, but does the cost of the SSH encryption connection hurt it that much? I see that the SSH Script is in the red, but EXE is not.

Is Powershell running on a PRTG server, remotely sending commands to a remote server less intensive than an SSH connection?


Article Comments

The cost of the SSH encryption is negligible here. From a development-cost-perspective, a PowerShell script would be the easiest way here. Remember to install the AD module for PowerShell, this will spare you from the need of using Remote PowerShell:

Add-WindowsFeature RSAT-AD-PowerShell

This way, the script can query your DC directly and you avoid most of the headache :)


Oct, 2016 - Permalink