lordmilko / PrtgAPI

C#/PowerShell interface for PRTG Network Monitor
MIT License
301 stars 37 forks source link

PowerShell - ShowTree and Export #307

Closed SMB123 closed 1 year ago

SMB123 commented 1 year ago

What's going on?

Hi lordmilko,

I have created a tree using 'Get-PrtgTree -Options All' but I can't seem to get the 'ShowTree' command to work. I've tried several variations with no success on specifying which tree to show. Also, is there currently a way to export a tree via PowerShell? I didn't see anything on this in the wiki and thought I would ask while here. Conversely, how would one import a tree on a new PRTG instance? Thanks for all of your amazing work with this!

image

Due Dilligance

lordmilko commented 1 year ago

Hi @SMB123,

In the screenshot above, you aren't specifying a tree to show

Get-PrtgTree -Options All | Show-PrtgTree

As noted on the wiki, the PrtgAPI Tree API is currently a work in progress. Importing trees into other PRTG servers is not currently supported