What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

I want to monitor group based license errors in Azure AD - Powershell

Votes:

0

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 ?

azure license powershell

Created on Feb 15, 2022 7:19:20 AM

Last change on Feb 15, 2022 7:32:26 AM by  Felix Wiesneth [Paessler Support]



1 Reply

Votes:

0

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

Created on Feb 16, 2022 5:53:29 AM by  Felix Saure [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.