In order to configure a Windows Server for Monitoring (Discovery / Inventory and Alert Processing), first we have to install the SNMP service.
By default, it is turned off or not installed on most operating systems.
Installation Instructions for the Windows SNMP Service
- Open Server Manager
- Click on Add Roles and Features
- Click Next (this will be a summary page)
- Click Next (by default, Role-based or feature-based installation
- Click Next (by default, it will select the server you are running the wizard on)
- Click next on the Roles wizard (we are not installing a role)
- Under Features, expand “Remote Server Administration tools > Feature Administration Tools ” and select “SNMP Tools” then click Next
- Click Install on the “Confirm installation selections “
- Click Close on the “Installation Progress”
The installation will take a couple of minutes to complete. After this, the SNMP service will be visible on the Services console.
Alternatively, you can also install the SNMP Service using Windows PowerShell:
Configuration instructions for the Windows SNMP Service
To configure the Windows SNMP service for SNMPv1/v2, there are two main tabs we will focus on. These are “Security” and “Traps”.
Security is to configure the SNMP agent, while, as the name states, Traps is to configure the SNMP destination for SNMP generated traps.
- Start by configuring the agent. First, click on Security and enter the community string under “Accepted Community Names”. In most instances, a “Read-Only” rights configuration will suffice.
- If this will be your host using for monitoring, select “Accept SNMP packets from any host”. Otherwise, specify which hosts to accept SNMP packets from.
- Next, is configuring the trap destination. This configuration is done under Traps. You will need to enter the community string and a destination IP (or DNS name) to where any generated alerts will be sent to.
Once the above steps are completed, click OK. Then, right click on the SNMP service and click restart for settings to take effect.
At this point, you should be able to go to your Management Station (Monitoring Utility or Software) and inventory and monitor this Windows Server by providing the SNMP agent community String.