The objective of this document is to describe the prerequisites to be implemented on a Microsoft Windows device in order to allow its supervision by SNMP and WMI protocols with ServiceNav.
This procedure is applicable for Windows Server versions from 2003 onwards.
This article describes step-by-step how to configure the Simple Network Management Protocol (SNMP) service. It describes how to configure SNMP agent properties and SNMP security.
Installing SNMP functionality
On version 2003, get the Windows installation CD to install SNMP.
Starting with Windows 2008 version, SNMP is a feature, which is installed as shown below :
The configuration of the SNMP Service is done from the services console.
Open from home (on Windows 2012 server) the application of the Administration tools.
Right-click in the list of services at SNMP Service then select Properties :
Under ServiceIf you are using a computer that is not connected to the Internet, select the checkboxes next to the services your computer provides. The service options are as follows:
- Physicsindicates whether the computer manages physical devices, such as a hard disk partition.
- Applicationsindicates whether the computer is using programs that send data via the TCP/IP protocol.
- Data link and subnetworkindicates whether this computer manages a subnetwork or a TCP/IP data link, for example a bridge.
- InternetIP Gateway: Indicates whether this computer is acting as an IP gateway (router).
- End to endindicates whether this computer is acting as an IP host.
Click on the tab Security.
In the Accepted community namesclick on Add... then enter the name of the community and the associated right. The right READING ONLY is enough. The name of the SNMP community is case sensitive. It is advisable to use the same community name for all servers.
Then click on Add.
Then specify the IP address of the supervisor authorized to perform SNMP accesses on the server.
Click on Accept SNMP packets from these hostson Addand then type the host name, IP address, or IPX address in the Host name, IP or IPX address.
- Click on Add.
- Click on OK.
Then click on OK to validate the configuration.
Restart the SNMP service to take into account this configuration, by right-clicking on SNMP Service in the list and then select Restart.
Creating the user in Active directory
Create a domain user dedicated to monitoring in your Active Directory domain.
Create the user and place him in a security group dedicated to supervision, for example Windows Monitoring.
Add user to local group Performance Analyzer Users / Performance Monitor Users.
This operation can be performed by GPO on the whole domain or on the target machines, by editing the following object :
Right click on Add a group. Select the group Windows Monitoring.
Once added, a window opens. In the bottom section ("This group is a member of"), click on Add... . Select the group Performance Analyzer Users. In doing so there will be no impact on users or groups already members of the group. Performance Analyzer Users on each server where GPO will be applied. You must view this result in your GPMC editor:
Carry out a census with ServiceNav: this will allow you to check whether the WMI user used to carry out the census has remote access rights to WMI. The census queries the WMI class Win32_OperatingSystem with the user provided.
Supervision of Windows services via WMI
Only a domain administrator user or a user from the group Directors local Windows device can query the status of Windows services with WMI. The following procedure explains how to configure a domain user to be part of the local group Directors of the Windows equipment without the possibility of connecting to this equipment.
This section describes in an Active Directory context how to :
- place the user in the local group Directors of each equipment
- Prevent the user from logging on to the equipment in console mode and Remote Desktop mode.
This can be done by modifying the GPO previously created on the Business Unit Analyst.
Right click on the group Windows Monitoringand then on Properties.
In the bottom section ("This group is a member of"), click on Add... . Select the group Directors.
Now you must get this:
Click on OK.
GPO item to be created to prevent the user from logging on to the equipment in console mode and Remote Desktop mode :