Hey guys,

Wanting some help on how I can write a powershell query that PRTG can understand. Im trying to provide some counts on Citrix licensing. I have currently have this:

gwmi -class "Citrix_GT_License_Pool" -Namespace "ROOT\CitrixLicensing" -comp x.x.x.x | Select-Object @{n="Product";e={$_.PLD}},@{n="In Use";e={$_.InUseCount}},@{n="Available";e={$_.Count}} | ConvertTo-Json

How can make this in json readable format that PRTG can understand? I'm a bit of a noob in the script writing for Powershell and was hoping I could get some tips?


Article Comments

Hi Jamie,

Please have a look on the manual here:

https://www.paessler.com/manuals/prtg/exe_script_sensor.htm https://www.paessler.com/manuals/prtg/exe_script_advanced_sensor.htm

The difference between both sensors is that one expect's a XML output and supports advanced output options, the second one supports only a single value.

You can check the expected syntax for both sensors insider your PRTG under 'Setup > PRTG API', please refer to the "Custom Sensors" tab.

You can see examples for custom sensors within PRTG's folder under: C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors

I hope this help.


With kind regards,
Chan Siau Hen
Technical Support Team, Paessler AG


Nov, 2021 - Permalink