Skip to main content

Microsoft IIS WSMAN

Pack Assets​

Templates​

The Centreon Pack IIS brings a host template:

  • App-Iis-WSMAN-custom

It brings the following service templates:

Service AliasService TemplateService DescriptionDefaultDiscovery
Application-PoolsApp-Iis-Application-Pools-WSMANCheck application poolsXX

Discovery rules​

Rule nameDescription
App-Iis-WSMAN-Application-Pool-NameDiscover application pools and monitor status

More information about discovering services automatically is available on the dedicated page and in the following chapter.

Collected metrics & status​

Metric NameUnit
domain controller status

Prerequisites​

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

On your Windows server, please install IIS WMI provider by installing the IIS Management Scripts and Tools component (compatibility IIS 6.0).

Setup​

  1. Install the Centreon package on every Centreon poller expected to monitor Microsoft IIS Server WSMAN resources:
yum install centreon-plugin-Applications-Iis-Wsman
  1. On the Centreon web interface, install the Microsoft IIS Server 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 Microsoft IIS Server WSMAN server's settings.
  • Apply the App-Iis-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_iis_wsman.pl \
--plugin=apps::microsoft::iis::wsman::plugin \
--mode=application-pools \
--hostname=10.0.0.1 \
--wsman-scheme=http \
--wsman-port=5985 \
--wsman-username='' \
--wsman-password=''

The expected command output is shown below:

All application pools are ok | 'pools.detected.count'=2;;;0;
Application pool 'test1' state: started [auto: on]
Application pool 'test2' state: stopped [auto: off]

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

/usr/lib/centreon/plugins/centreon_iis_wsman.pl \
--plugin=apps::microsoft::iis::wsman::plugin \
--mode=application-pools \
--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_iis_wsman.pl \
--plugin=apps::microsoft::iis::wsman::plugin \
--list-mode

Troubleshooting​

Please find the troubleshooting documentation for Centreon Plugins typical issues.