Active Directory Dashboard

Active Directory Dashboard

The purpose of this project is to show how to use WMI and Grafana to build an Active Directory dashboard.

The Python script uses the linux wmic client you can find here

The software requirements are the following :

  • a debian / ubuntu system (you can choose another os but prefer those ones if you need help :))
  • influxdb database
  • grafana
  • python (for me I have the version 2.7.3)
  • InfluxDBClient for python
  • wmic tool

In this example, you will have to create one influxdb database called admon

The first step, is to use a user account only member of “Domain Users” to query WMI : for us, I will use the username called wmiusername

On each domain controller, you will have to add this user to the WMI security :

wmi1

wmi2.1

wmi3

wmi4

When it is done, restart the WMI service.

Configure the config file below according to your environnement

Copy the python script to your linux box and run it

You can use the following AD_Grafana_Dashboard to import in Grafana to get a dashboard like this :

addash2

You can download the archive that contains all required files admon

Do not hesitate to contact me if you have any questions

One thought on “Active Directory Dashboard

  • March 8, 2016 at 17:15
    Permalink

    This looks really cool but how did you get this all set up on the server? As someone who is fairly new to linux, I am not sure how to get this all up and running. Thanks

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *