Enabling SNMP on Windows Hosts
All that's a lot to digest, so let's enable the SNMP agent on a Windows system and see what it can do for us. To enable the SNMP agent on Windows XP, follow these steps.
- Navigate to Start | Settings | Control Panel.
- Open Add or Remove Programs
- Select Add/Remote Windows Components on the left side of the window.
- Highlight Management and Monitoring Tools, but do not check it.
- Click Details.
- Place a check next to Simple Network Management Protocol and click OK.
- Click Next and then click Finish.
Next you need to configure some specific SNMP settings on the Windows host. Do this by following these steps.
- Click Start | Run and enter services.msc to open the services snap-in.
- Double-click the SNMP Service entry in the right pane.
- Select the Agent tab.
- Enter the Contact information and the Location information. These are used as identifiers for the system when viewed from the management console.
- Open your MMC.
- Select Computer Management in the left pane.
- Expand this to Computer Management | Services and Applications | Services.
- In the Service section, place a check next to the types of SNMP MIBs you want to use.
- Select the Traps tab.
- In the Community name drop-down list, enter a community name, also called a community string, and then click Add to list.A community string is very much like a password and serves to limit who can use SNMP on a given device.
- In the Trap Destinations section, click Add and enter the system you want to send traps to.This would be the SNMP management console.To use a previous example, this could be the IP address of the system running PRTG Traffic Grapher.
- Select the Security tab.
- Highlight the default community name of public and click Remove. If you leave public as a READ ONLY community, anyone will be able to read the SNMP data of your system.The default on most systems is "public" with read-only access and "private" with full control. As is always the case, you don't want to use the defaults when it comes to passwords.
- Click Add and enter a Read Only Community Name, and click Add again.
- Repeat this process and add a community name with read/write access.
- Select the radio button next to Accept SNMP packets from these hosts and click Add.
- Enter an IP address or host name and click Add. In this example entered the same IP as my PRTG management console.
- Click Apply and OK.
Your Windows system is now ready to be managed using SNMP; all you need is a management console. In this case we can add it as an additional sensor to our PRTG system (remember the freeware version has a limit of three sensors).To add the Windows host to your PRTG console, follow these steps.
- Open the PRTG application.
- In the Sensors pane, highlight All Sensors.
- Right-click and select Add Sensor.This will start the Add Sensor Wizard.
- Click Next.
- Select SNMP as your data acquisition type and click Next.
- The default selection of Standard Traffic Sensor will enable you to see how much bandwidth is being used by the Windows system inbound and outbound.The SNMP Helper Sensor will enable you to view some more-detailed Windows-specific counters. For basic monitoring select Standard Traffic Sensor and click Next.
- In the Device Selection window, enter a name for the sensor and the IP address. Choose your SNMP version (choose the highest one your device will support). Enter the community string to use for that sensor, and then click Next. It will connect to the sensor and enable you to select which interface to monitor.
- Place a check next to the appropriate interface.
- Choose which values to monitor (Bandwidth is the default) and click Next.
- This final screen enables you to choose a group for the sensor listing and configure the scanning interval.The defaults are probably okay, so simply click Finish.
You should see a new set of graphs, with bandwidth in and bandwidth out, for the newly added sensor.To add a sensor that uses the SNMP helper freeware, the steps are mostly the same.The only significant difference is that you need to run the Paessler SNMP Helper Setup.exe file on the system to be monitored.This setup file can be found in the same directory that PRTG was installed in.The setup file has no real configuration options and is very easy to install.
After installing the SNMP helper, proceed with adding the sensor following the steps above, with the following changes. When you select the type of SNMP to use, simply select SNMP Helper Sensor, choose the SNMP Helper Freeware in the drop-down box, and then click Next.The PRTG console will connect to the agent and present you with a list of all the possible values you can monitor. After making your selections, click Next.
In this tutorial:
- Network Reporting and Troubleshooting
- Reporting on Bandwidth Usage and Other Metrics
- Collecting Data for Analysis
- Understanding SNMP
- SNMP Security
- Configuring Multi Router Traffic Grapher
- Configuring MZL & Novatech TrafficStatistic
- Configuring PRTG Traffic Grapher
- Configuring ntop
- Enabling SNMP on Windows Hosts
- Enabling SNMP on Linux Hosts
- Troubleshooting Network Problems
- Using a GUI Sniffer
- Using a Command-Line Sniffer
- Windump
- ngSniff
- Tcpdump
- Additional Troubleshooting Tools
- Netcat
- Tracetcp
- Netstat