12/05/2006
Monitoring Windows servers - with SNMP
My previous article was focused on Linux monitoring. Often, you’ll have in your datacenter at least a few Windows machines. SQL Server is one of the best excuses these days to get a Microsoft machine in your server room - and you know what, it’s a decent database - well, at least for medium-sized companies like the one I’m working for right now.
It is less known, but yes you can have SNMP support out of the box with Windows 2000 and XP, and it doesn’t need to be the Server flavor [obiously it works the same in 2003 Server]:
- Invoke the Control Panel.
- Double click the Add/Remove Programs icon.
- Select Add/Remove Windows Components. The Windows Component Wizard is displayed.
- Check the Management and Monitoring Tools box.
- Click the Details button.
- Check the Simple Network Management Protocol box and click OK, then Next. You may have to reboot the machine.

- Invoke the Control Panel.
- Double click the Administrative Tools icon.
- Double click the Services icon.
- Select SNMP Service.
- Choose the Security tab.
- Add whatever community name is used in your network. Chances are in a local internal LAN the default public works out of the box.
- For a sensitive server, you may want to fiddle a little bit with the IP restriction settings, for instance allowing SNMP communication only with the monitoring machine.
- Click OK then restart the service.
Next step is Cacti integration. Unfortunately, there is no Windows-specific profile for devices in Cacti. Therefore if you have lots of Windows machines, you’ll have to define your own. Or, take a Generic SNMP-enabled host and use it as a scaffold for each device configuration.
Out of the graphs and datasources already defined in Cacti [I am using 0.8.6c] only two work with Windows SNMP agents: processes and interface traffic values.


- .1.3.6.1.2.1.25.2.3.1.5.6 - Total physical memory
- .1.3.6.1.2.1.25.2.3.1.6.6 - Used physical memory
- .1.3.6.1.2.1.25.2.3.1.6.6 - Total virtual memory ["virtual"="swap" in Windows lingo]
- .1.3.6.1.2.1.25.2.3.1.6.6 - Used virtual memory
Here’s a neat memory chart for a windows machine. Notice that the values are in “blocks” which in my case is 64kb. The total physical memory is 4GB.


Hi,
I found very interesting this site and that is I want to do but. Where do I can enter especific OID (path)? I am a newbie and I am trying Cacti but I want to graph this especific OID that you hav explained.
Look here for explanations:
http://docs.cacti.net/node/80
Thank you very much.
I found it very usefull as i needed to switch to other input methods from WMI