Hi,

Is there any way to retrieve a list of remote probes within PRTG? If possible including their GID, Name and IP?

Regards, Stephan


Article Comments

Within PRTG, you can retrieve a list via http://<your-prtg>/status.htm?tabid=1, But the GID is missing. You can get it with the following PowerShell script:

[string] $ConfigurationFilePath = ((Get-ItemProperty -Path "hklm:SOFTWARE\Wow6432Node\Paessler\PRTG Network Monitor\Server\Core" -Name "Datapath").DataPath) + "PRTG Configuration.dat"
   [xml] $configuration = New-Object -TypeName XML;
         $configuration.Load($ConfigurationFilePath)

$Probes = $configuration.SelectNodes("//probenode")

$ProbeList = foreach($Probe in $Probes){
    [pscustomobject]@{
        ID   = $probe.ID
        GID  = $probe.data.probegid.Trim()
        Name = $probe.data.name.Trim()
        IP   = $probe.data.probeip.Trim()
    }
}

$ProbeList

Simply save it as probelist.ps1 and execute it. It will output something like this:

IDGIDNameIP
1DB1833F5-C90D-47C7-87CF-294B3CF687CCPaessler AG127.0.0.1
3244DB1833F5-C90D-47C7-87CF-294B3FKLJLKJAOffsite Office78.1.1.3

Note: This script comes without ANY warranty or support. Should it not work, we take no liability. Please carefully test it also on a copy of the configuration file. This has been tested with PowerShell v4. Make sure you have this or a newer version installed.


May, 2016 - Permalink

Hi

If I run this Script I always get the error:

Exception calling "Load" with "1" argument(s): "'§', hexadecimal value 0x15, is an invalid character. Line 5565565, position 47."

What do I have to change to make it work? I have PS 4 installed


Feb, 2017 - Permalink

Hi Joerg,

What is really interesting, is the fact that PowerShell complains on line 5565565. Please forward us this specific line, the one above and the one underneath of the script to analyze it further.

Best regards.


Feb, 2017 - Permalink

Script works here like a charm: Thanks! Is there also a possibility to get association of Access Keys with Probe Names?


Jun, 2018 - Permalink

Hi there,

Unfortunately, that is not possible as there is actually no real link between both. Theoretically you can use one access key for all remote probes.

Best regards.


Jul, 2018 - Permalink

Let me ask again as the access key is generated when downloading/installing remote probes but executable differs only in filename: Any possibility to get an association of PRTG_Remote_Probe_Installer_for_customer_url_with_key_{AssocID}.exe with probe connection settings at webinterface?


Jul, 2018 - Permalink

Hi there,

As mentioned, this is not possible. This is just a process to make it easier for you to setup a probe - as the access key is predefined. But for PRTG there is no Link between the probe and access key as every probe can use every access key.

Best regards


Jul, 2018 - Permalink

You sir are a legend this script is awesome.


Dec, 2018 - Permalink

Thanks! :)


Dec, 2018 - Permalink