Skip to content
Home » Scripting


PRTG Powershell class for custom sensor results

I’ve been working with PRTG a lot over the last years for monitoring IT infrastructure. One of the cool features of PRTG is that you have almost unlimited possibilities to create your own custom scripts to monitor almost anything. If you are able to return a numeric value, you can show it in PRTG. Over the past years I’ve created a few dozen custom Powershell scripts for monitoring various IT… Read More »PRTG Powershell class for custom sensor results

Monitor your Microsoft 365 licenses with PRTG

We recently started using Office 365. One of the advantages of this subscription based licensing is that you can change the number of licenses monthly, based on what you actually need. In the beginning all works fine and you regularly check if you don’t have (too much) unused licenses, but after a while other priorities arise and before you know it you have a bunch of licenses that you pay… Read More »Monitor your Microsoft 365 licenses with PRTG

VMware Horizon – Powershell scripting (Desktop Pools)

Today we’ll be monitoring our desktop pools. In our PRTG monitoring, we’d like to see the status of our desktop pools, the status of the provisioning and of course if there are enough desktops available. Desktop Pools A desktop pool can be enabled or disabled, so we’d like to see that in our PRTG monitoring system. Also provisioning can be enabled or disabled foor a VDI desktop pool, but not… Read More »VMware Horizon – Powershell scripting (Desktop Pools)

VMware Horizon – Powershell scripting (Problem VMs)

In the next post of this series, we’ll have a look at querying the number of Problem vCenter VM’s from VMware Horizon. The number of problem VM’s in Horizon can be seen in the Flash based administrator console in the upper left corner: Problem VMs If you click on the number next to Problem vCenter VMs, you get a list of all the VM’s that are in a non-normal status.… Read More »VMware Horizon – Powershell scripting (Problem VMs)

VMware Horizon – Powershell scripting (Connection servers)

In the previous post “ViewAPI” we installed the necessary modules and learned how to (dis-)connect to our Horizon Connection server. In this part, we’ll get information from that ViewAPI about the connection servers in our environment. Connection server information Let’s start by getting some information about our Connection servers. Therefore we use the property ConnectionServerHealth. We’ll retrieve an array containing all our Connection servers with their basic information like name,… Read More »VMware Horizon – Powershell scripting (Connection servers)

VMware Horizon – Powershell scripting (ViewAPI)

I’ll be starting my new blog with a series of posts about using Powerschell to get information about a VMware Horizon infrastructure. I’m using PRTG as my monitoring system because it has very flexible customized scripting capabilities. This way you can just monitor anything by writing your own scripts (if it’s not already builtin). Requirements First things first. We’ll need to make sure we have installed the VMware.VIMAutomation.Core & VMware.VIMAutomation.HorizonView… Read More »VMware Horizon – Powershell scripting (ViewAPI)