Skip to main content
Released

Azure monitoring new plugin idea - Azure Policies

Related products:Infra Monitoring - Connectors
  • September 7, 2022
  • 14 replies
  • 111 views

Forum|alt.badge.img+3

Hi,

Azure policies allows to defines expected behavior for many things, then applied policies get a compliant/non compliant state.

That would be great to have a plugin that query Azure policies REST API to know in Centreon if a policies goes to a non compliant state.

 

REST API doc is there:

https://docs.microsoft.com/en-us/rest/api/policy/policy-states/list-query-results-for-subscription?tabs=HTTP

14 replies

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • September 15, 2022
NewDiscussion ongoing

Forum|alt.badge.img+5
  • Centreonian
  • September 15, 2022
Discussion ongoingIn Backlog

Forum|alt.badge.img+5
  • Centreonian
  • September 15, 2022
Updated idea statusIn BacklogNew

Forum|alt.badge.img+5
  • Centreonian
  • September 21, 2022
NewIn Backlog

sims24
Forum|alt.badge.img+19
  • Ranger ***
  • October 20, 2022

Hello Matoy, 


We will more likely work on this soon. ​​​​​

 

Here is an extract from our internal ticket, please share any feedback is something seems irrelevant to you: 

 

>>>

The most relevant call is this one, the value to check is complianceState and it would be interesting to provide filter to exclude some lines from the resultset:

  • location/region (resourceLocation)

  • resource type (resourceType)

  • resource group (resourceGroup)

Code architecture:

  • One status counter (type 1), to check the complianceState string. Default critical should be %{compliance} eq 'NonCompliant'.

  • One global (type 0) counter to count the number of non compliant policies.

<<<  

 

Best


Forum|alt.badge.img+5
  • Centreonian
  • December 15, 2022
In BacklogPlanned

rchauvel
Centreonian
Forum|alt.badge.img+18
  • Centreonian
  • April 21, 2023
PlannedReleased

Forum|alt.badge.img+3
  • Author
  • Steward *
  • April 21, 2023

hi @rchauvel any news on the release?

as it has been released, it’s not really working ; i participated to its testing and suggested changes/addons here:

https://github.com/centreon/centreon-plugins/pull/4224

 

there is no answsers for some weeks now; it’s a pity since we’re almost at the goal.

regards,


omercier
Centreonian
Forum|alt.badge.img+15
  • Centreonian
  • April 21, 2023

A new version has been released last week. Does it fix your issue?


Forum|alt.badge.img+3
  • Author
  • Steward *
  • April 21, 2023

yes ; with or without -policy-name parameter.

please look at my last message there https://github.com/centreon/centreon-plugins/pull/4224 it’s still valid (i just tested with current code from master branch)

 


omercier
Centreonian
Forum|alt.badge.img+15
  • Centreonian
  • April 27, 2023

We’’ll have a look at it very soon :-)


Forum|alt.badge.img+3
  • Author
  • Steward *
  • April 28, 2023

Thank you.
And sorry for my last message : NO it does not fix the issue.

Regards,


Forum|alt.badge.img+1
  • Centreonian
  • April 28, 2023

Hello matoy,

Did you test with the code of the “develop” or “master” branch ? the good one is “develop” (a correction was made there last week)

If it still doesn’t work, can you tell me whitch parameters you’ve used in your request ? I’ve tested one with --resource-type, --resource-location and --policy-name without reproducing your problem.


Forum|alt.badge.img+3
  • Author
  • Steward *
  • April 28, 2023

Hi,

 

sorry.

just tested with the develop branch, it’s okay (i tested with --resource-location and --policy-name)

 

thank you.