Code Monkey home page Code Monkey logo

prtg's Introduction

PRTG

This repository consist of several scripts:

  1. PRTG Custom Sensor Result Powershell class
  2. PRTG Custom Lookup files
  3. PRTG Custom sensor Powershell scripts for monitoring VMware Horizon

PRTG Custom Sensor Result Powershell class

I have created this Powershell class to facilitate a correct JSON output of my PRTG custom Powershell scripts. Instead of repeating all the output statements in all my scripts, this class stores all information I want in the sensor and finally writes out a PRTG compliant JSON string. It saved me a lot of coding time and even more debugging time because of another type in the outputted JSON string. The class can be found here

PRTG Custom Lookup files

I also created some custom PRTG Lookup value files to show the status of some channels in PRTG Those .ovl files must be placed in your PRTG installation folder under lookups\custom You can find the files here

PRTG Custom sensor Powershell scripts for monitoring VMware Horizon

A collection of powershell scripts to monitor your VMware Horizon environment with PRTG. More information can be found here

prtg's People

Contributors

mickeybyte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

prtg's Issues

Non valid json output for PRTG with a single result

Hi,

Really simple issue and fix. When returning a single result through this tool, PRTG reports en error parsing the JSON.

What happens is that when using the pipeline to feed ConvertTo-Json, even if the object passed is an array, the function only receives a single item. Because of that, ConvertTo-Json doesn't output brackets [ ] in the output, whichi PRTG requires even for a single item.

To fix this, instead of using "$this.Channels | ConvertTo-Json", the script should use "ConvertTo-Json @($this.Channels)", which forces the value to be treated as an array and always outputting the brackets [ ].

And that makes PRTG really happy.

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.