Monitor your first Windows host
Monitoring a Windows server with SNMP
In this tutorial, we're assuming that your Centreon platform is installed and running well, and that you have at least a Centreon IT 100 Edition that provides Centreon Monitoring Connectors (your license is already set up).
Your Windows server will be monitored using the Windows SNMP Monitoring Connector. (More about Monitoring Connectors here).
Prerequisites
On the Windows server you want to monitor
The first step is to install and configure the SNMP service on the Windows host you want to monitor. Please refer to the documentation of your Windows distribution to know how to configure the SNMP service.
Find below some steps to install and configure SNMP on Windows 10.
Installing SNMP on Windows 10
There are several ways to enable SNMP: from the Settings menu or by using PowerShell.
- From the Settings menu
- By using PowerShell
Go to Settings > Apps & features > Optional features.
Click on Add a feature and search for SNMP:
Select Simple Network Management Protocol (SNMP) and click on Install.
Check if the SNMP service is installed:
Get-WindowsCapability -Online -Name "SNMP*"
To install the SNMP service from Microsoft's servers, run the following command:
Add-WindowsCapability -Online -Name "SNMP.Client~~~~0.0.1.0"
Check if the SNMP service has been installed successfully:
Get-WindowsCapability -Online -Name "SNMP*"
Configuring SNMP on Windows 10
After installing SNMP, you need to configure it.
In the search bar, type services.msc and press Enter to launch the Services panel.
Look for the SNMP service in the list.
On the Agent tab, fill in the Contact and Location parameters. Then in the Service section, check the boxes for services from which you want to collect data for forwarding it to the Centreon Poller which will monitor the host.
On the Security tab, write the SNMP community in the Accepted community names section and choose the READ ONLY option. Then select Accept SNMP packets from these hosts and add the IP address of the Centreon poller.
Restart the SNMP Service:
On the Centreon poller
Connect to your poller using SSH and install the Windows SNMP plugin (see the monitoring procedure for the Windows SNMP Monitoring Connector for more information):
- Alma / RHEL / Oracle Linux 8
- Alma / RHEL / Oracle Linux 9
- Debian 11
dnf install centreon-plugin-Operatingsystems-Windows-Snmp
dnf install centreon-plugin-Operatingsystems-Windows-Snmp
apt install centreon-plugin-operatingsystems-windows-snmp
On the central server
In the web interface, go to Configuration > Monitoring Connector Manager and install the Windows SNMP Monitoring Connector:
Configure the host and deploy the configuration
Go to Configuration > Hosts > Hosts and click on Add:
Fill in the following information:
- The name of the server (1)
- A description of the server (2)
- The IP address of the server (3)
- The SNMP version and community (4)
- Select the poller that will monitor your Windows server (keep "Central" if you have no other poller) (5)
Click on + Add a new entry in the Templates field (6), then select the OS-Windows-SNMP-custom template (7) from the list.
Click on Save. Your equipment has been added to the list of hosts:
Go to Configuration > Services > Services by host. A set of indicators has been automatically deployed:
Go to Monitoring > Resources Status and select All from the Resource status filter. At first, the resources appear with the status Pending, which means that no checks have been executed yet:
After a few minutes, the first results of the monitoring appear:
If not all services are in an OK state, check what causes the error and fix the problem.
To go further
The Windows SNMP Monitoring Connector provides several monitoring templates. Go to Configuration > Services > Templates to know the complete list:
With Centreon IT Edition you can add very quickly and very simply the monitoring of your network cards, partitions, processes and services using the Service Discovery functionality.
Go to Configuration > Services > Scan. Start writing the name of the host and the web interface automatically completes the name:
Select the discovery command to run from the list that has just appeared below the Rule field. Then click on the Scan button and wait during the discovery. The result is displayed. Select items to add to the monitoring and click on the Save button:
The item was added. You can select another discovery command below Rule and repeat the process.
The services are added and can be displayed in the Configuration > Services > Services by host menu: