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 Alias | Service Template | Service Description | Default | Discovery |
---|---|---|---|---|
Application-Pools | App-Iis-Application-Pools-WSMAN | Check application pools | X | X |
Discovery rules​
- Service
Rule name | Description |
---|---|
App-Iis-WSMAN-Application-Pool-Name | Discover 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​
- Dcdiag
Metric Name | Unit |
---|---|
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​
- Online License
- Offline License
- Install the Centreon package on every Centreon poller expected to monitor Microsoft IIS Server WSMAN resources:
yum install centreon-plugin-Applications-Iis-Wsman
- On the Centreon web interface, install the Microsoft IIS Server WSMAN Centreon Pack on the Configuration > Monitoring Connector Manager page.
- Install the Centreon package on every Centreon poller expected to monitor Microsoft IIS Server WSMAN resources:
yum install centreon-plugin-Applications-Iis-Wsman
- Install the Microsoft IIS Server WSMAN Centreon Pack RPM on the Centreon Central server:
yum install centreon-pack-applications-iis-wsman
- 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.
Mandatory | Macro | Description |
---|---|---|
WSMANEXTRAOPTIONS | Any extra option you may want to add to every command line (eg. a --verbose flag) | |
WSMANPASSWORD | ||
WSMANPORT | 5985 | |
WSMANPROTO | http | |
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.