mickeybyte / PRTG

PRTG Custom Sensor Powershell class and Horizon Monitoring sensors
5 stars 0 forks source link

PRTG-HorizonRDSFarm.ps1/PRTG-HorizonTrueSSO.ps1: XML: The returned XML does not match the expected schema. (code: PE233) #18

Open ggriffinorg opened 2 years ago

ggriffinorg commented 2 years ago

Hi Mickey, Let me first thank you for the awesome job you have done on the scripts for Horizon View. Just so easy to use. Cool. All scripts work without issues, but I am having an issue with PRTG-HorizonRDSFarm.ps1 and PRTG-HorizonTrueSSO.ps1. PRTG (22.2.76.1705+) gives back following error: XML: The returned XML does not match the expected schema. (code: PE233) We are running Horizon View 8 and we have no Farm, just 3 connection servers, does something need to be adjusted? If you need some logs or extra information please let me know. TY in advance for your help. Have a great evening. BR, Greg

mickeybyte commented 2 years ago

Hi,

You only need the farm and TrueSSO scripts if you actually have an RDS farm or if you have configured TrueSSO in your Horizon environment. So if you don't have them you don't need to monitor them too ;-)

The scripts probably don't handle the return of no information not correctly and that's probably why you get the xml error. I'll have to check this.

Regards, Mickeybyte

ggriffinorg commented 2 years ago

Hi Mickeybyte, Thank you very much for the detailed explanation. I understand better now. Just one last question: is there a way to add also to display "Connected/Disconnected/Agent Unreachable/Error VMware View Sessions per Pool" and "Provisioned VM" like the old PowerShell Scripts did? I attached scripts that work on HV 7.13 but no longer work on HV8. Maybe you can figure out why they no longer work. They are almost similiar to yours posted here https://itpro.peene.be/vmware-horizon-powershell-scripting-desktop-pools/ TY in advance for the feedback and eventual help. BR Greg VMWare View - Provisioned VMs.zip VMWare View - Problem State.zip

mickeybyte commented 2 years ago

Hi,

The scripts you are referring to on my blog are actually still working in Horizon 8. The VIEW API still works in Horizon 8.

The scripts you attached probably need the extra VMware.Hv.Helper module (https://github.com/vmware/PowerCLI-Example-Scripts/tree/master/Modules/VMware.Hv.Helper) to be loaded first.

Regards, Mickeybyte

ggriffinorg commented 2 years ago

Hi, TY for the fast answer and help. I'll check it out. I wish you a great evening. BR, Greg