.. _nep_windows_active_directory:


***************************************
 Windows Domain Controller
***************************************

The ``nep-windows-active-directory`` provides the monitoring of Windows Domain Controller Server . 

Using the provided objects, is possible to:

- Service AD Domain Services Status
- Service AD Web Services Status
- Service DFS Replication Status
- Service Group Policy Client Status
- Service Kerberos Key Distribution Center Status
- Service SMB Server Status
- Domain DCs LDAP query
- Domain DCs LDAP GC query
- AD DC Status
- AD Replication Status


Minimum supported environment
=============================
This package can be installed on systems running the software described below. Systems with equivalent components are also suitable for installation.

================= ===============
Required software Requirements
================= ===============
NetEye            Version ``4.20+``
NetEye  modules   ``Core``
================= ===============


Package requirements
====================
Service and Host Template shipped with package ``nep-windows-active-directory`` require the following nep:

- nep-common

Agents must run as Local System (you can change this on Windows Services) on Windows Domain Controller Server


Setup instructions
==================
To setup Package ``nep-windows-active-directory``, just use the Setup Utility:

.. code:: bash

    nep-setup install nep-windows-active-directory



These scripts must be downloaded on every Windows Domain Controller Server at path C:\Scripts\Icinga

- `check_adreplication.ps1 <https://raw.githubusercontent.com/juangranados/nagios-plugins/master/check_adreplication.ps1>`_
- `check_ad.vbs <https://exchange.nagios.org/directory/Plugins/Operating-Systems/Windows/Active-Directory-(AD)-Check/details>`_

The following variable has to be set on the environment ::

         (main template windows-generic-domain-controller) AD Bind password AD Bind username (read only user, like the Import Source) DNS Domain Name (domain.it) LDAP Domain DN (like dc=domain,dc=it)


Available Objects
=================
This section contains a description of all the Objects from this package that can be used to build your own monitoring environment.


Director Objects
----------------
The Package contains the following Director Objects.


**Host Group**

The following Host Group  can be used to freely create Host Objects.
Remember to not edit these Host Group because they will be restored/updated at the next NEP package update.

======================================= ===========
Host Group name                         Description
======================================= ===========
AD Domain Controllers                   Describe a generic Windows AD Domain Controllers host group.
======================================= ===========


**Host Templates**

The following Host Templates can be used to freely create Host Objects.
Remember to not edit these Host Templates because they will be restored/updated at the next NEP package update.

======================================================            ===========
Host Template name                                                Description
======================================================            ===========
nx-ht-server-agent-windows-domain-controller                      Describe a generic Windows AD Controller Server.
nx-ht-server-agent-windows-domain-controller-readonly             Describe a generic Windows AD Controller Server readonly
======================================================            ===========


**Service Templates**

The following Service Templates can be used to freely create Service Objects, Service Apply Rules or Service Sets.
Remember to not edit these Service Templates because they will be restored/updated at the next NEP Package update.

======================================= ============ ===========
Template name                           Run on Agent Description
======================================= ============ ===========
nx-st-agentless-ldap-query              No           Checks all aspects of monitoring of Windows AD Controller Server 
======================================= ============ ===========


**Service Sets**

The following Service Sets can be used to freely monitor Host Objects.
Remember to not edit these Service Sets because they will be restored/updated at the next NEP Package update.

================================ ===========
Service Set name                 Description
================================ ===========
nx-ss-windows-ad-dc-server        Service Set providing common monitoring for Windows Domain Controller Server: Service AD Domain Services Status,Service AD Web Services Status,Service DFS Replication Status,Service Group Policy Client Status,Service Kerberos Key Distribution Center Status,Service SMB Server Status, Domain DCs LDAP query,Domain DCs LDAP GC query,AD DC Status,AD Replication Status

================================ ===========


ITOA Dashboards
---------------

The Package does not provide any ITOA Dashboards right now.


Package's objects list
----------------------

.. csv-table::
    :file: objects_list.csv
    :header-rows: 1