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:
ID | GID | Name | IP |
1 | DB1833F5-C90D-47C7-87CF-294B3CF687CC | Paessler AG | 127.0.0.1 |
3244 | DB1833F5-C90D-47C7-87CF-294B3FKLJLKJA | Offsite Office | 78.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.
Add comment