I want to get a error when there are group based license errors.
We are using AD groups for licensing and overprovisioning is just a small step away.
I know i can check using the powershell command
"Get-MSOLgroup -HasLicenseErrorsOnly $true"
But how can i implement this in PRTG ?
Article Comments
Hello there,
You can create a custom sensor in PRTG as described here. The can be an Exe/Script advanced sensor executing your PowerShell script. The required output in XML or JSON is also described on the linked manual pages.
Keep in mind that PRTG only evaluates numeric values, there for you need to change the output of the PowerShell command to return it accordingly. So for instance by creating a counter for the number of errors listed after you sent the command.
Kind regards,
Felix Saure, Tech Support Team
Feb, 2022 - Permalink
Hello there,
You can create a custom sensor in PRTG as described here. The can be an Exe/Script advanced sensor executing your PowerShell script. The required output in XML or JSON is also described on the linked manual pages.
Keep in mind that PRTG only evaluates numeric values, there for you need to change the output of the PowerShell command to return it accordingly. So for instance by creating a counter for the number of errors listed after you sent the command.
Kind regards,
Felix Saure, Tech Support Team
Feb, 2022 - Permalink