Skip to main content

Microsoft Active Directory WSMAN

Pack Assets​

Templates​

The Centreon Pack Active Directory WSMAN brings 1 host template:

  • App-ActiveDirectory-WSMAN-custom

It brings the following service templates:

Service AliasService TemplateService DescriptionDefaultDiscovery
DcdiagApp-ActiveDirectory-Dcdiag-WSMANThis check diagnose the domain controller. It executes the command dcdiag.X

Collected metrics & status​

Metric NameUnit
domain controller status

Prerequisites​

To monitor Active Directory, please follow our official documentation and make sure that WinRM and all rights are properly configured.

Setup​

  1. Install the Centreon package on every Centreon poller expected to monitor Active Directory WSMAN resources:
yum install centreon-plugin-Applications-ActiveDirectory-Wsman
  1. On the Centreon web interface, install the Active Directory WSMAN Centreon Pack on the Configuration > Monitoring Connector Manager page.

Configuration​

Host​

  • Log into Centreon and add a new host through Configuration > Hosts.
  • Fill the Name, Alias and IP Address/DNS fields according to your Active Directory WSMAN server's settings.
  • Apply the App-ActiveDirectory-WSMAN-custom template to the host.
  • Once the template is applied, fill in the corresponding macros. Some macros are mandatory.
MandatoryMacroDescription
WSMANEXTRAOPTIONSAny extra option you may want to add to every command line (eg. a --verbose flag)
WSMANPASSWORD
WSMANPORT5985
WSMANPROTOhttp
WSMANUSERNAME

How to check in the CLI that the configuration is OK and what are the main options for?​

Once the plugin is installed, log into your Centreon Poller's CLI using the centreon-engine user account (su - centreon-engine) and test the plugin by running the following command:

/usr/lib/centreon/plugins/centreon_activedirectory_wsman.pl \
--plugin=apps::microsoft::activedirectory::wsman::plugin \
--mode=dcdiag \
--hostname=10.0.0.1 \
--wsman-scheme=http \
--wsman-port=5985 \
--wsman-username='' \
--wsman-password=''

The expected command output is shown below:

OK: Connectivity - Advertising - DFSREvent - SysVolCheck - KccEvent - MachineAccount - Replications - RidManager - Services - FsmoCheck

All available options for a given mode can be displayed by adding the --help parameter to the command:

/usr/lib/centreon/plugins/centreon_activedirectory_wsman.pl \
--plugin=apps::microsoft::activedirectory::wsman::plugin \
--mode=dcdiag \
--help

All available options for a given mode can be displayed by adding the --list-mode parameter to the command:

/usr/lib/centreon/plugins/centreon_activedirectory_wsman.pl \
--plugin=apps::microsoft::activedirectory::wsman::plugin \
--list-mode

Troubleshooting​

Please find the troubleshooting documentation for Centreon Plugins typical issues.