Setup WMI monitoring/graphing

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
Waterboy2020
Posts: 4
Joined: Wed Sep 11, 2019 8:18 am

Setup WMI monitoring/graphing

Post by Waterboy2020 »

Recently made the move from MRTG graphs to Cacti, promising so far, I find the graphs are more accurate. For some reason I could never get the 64 bit SNMP counters working on MRTG.

I''d like like to do Server monitoring, mostly Windows 2008/2012 servers. I've spent some time looking for a guide to walk me through everything I need to do, everything I've come across that
covers the basics is written for Cacti on Linux. Is there anything out there?

If there is nothing already published, Do I need to install a plugin? What's the basic outline?

Thanks !

pete
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Setup WMI monitoring/graphing

Post by netniV »

To monitor windows servers, you simply need the SNMP service installed. Be warned though that Microsoft aren't really support SNMP any more for some reason so most of the counters on there are still 32-bit rather than 64-bit.

In fact, for Windows Server, you can use:

Code: Select all

Get-WindowsFeature *SNMP* | Add-WindowsFeature
For Windows 10, however, you may find that recent builds make it REALLY REALLY difficult to get the SNMP service up and running as they seem to be castrating it. For that, do a google of SNMP Windows 10 and you'll see plenty of people complaining about this. There are some suggestions about temporary disabling windows update to make it work but I haven't tested that out.

Once you do have the service installed, you'll need to configure it either via group policy or manually. I have a blanket group policy that gets applied now by setting the various registry entries (though I can't recall them off the top of my head as it was so long ago). Don't forget to allow the service through the Windows Firewall or whatever local firewall software you are using.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Waterboy2020
Posts: 4
Joined: Wed Sep 11, 2019 8:18 am

Re: Setup WMI monitoring/graphing

Post by Waterboy2020 »

From what I'm reading on here it seems that WMI gives better info but it's got a lot of overhead, especially if your polling hundreds of servers.

General consensus is to use SNMP, but Microsoft seems to be discouraging that. Right now most of the servers are 2012 but we're starting to deploy 2016 whenever we can.
I also saw someone who recommended using Microsoft SCOM server to monitor, I really don't want to maintain two monitoring systems.

I see information for installing WMI monitoring on Linux, are there any guides for Windows?
I'm new at this so the simpler the instructions the better at this point. I'm at the crawling stage right now, hope to be walking by the end of this....

pete
User avatar
camerabob
Cacti User
Posts: 386
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Setup WMI monitoring/graphing

Post by camerabob »

Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
Waterboy2020
Posts: 4
Joined: Wed Sep 11, 2019 8:18 am

Re: Setup WMI monitoring/graphing

Post by Waterboy2020 »

Looks like another vote to use SNMP vs WMI.
WMI is more complicated but seems to be the preferred method for pulling info from Windows, I'll continue to work towards that.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Setup WMI monitoring/graphing

Post by Osiris »

There is a WMI plugin on GitHub. I think it queries just fine, though, according to the author, the graphing/data source bit need help by others. I've used it myself to run queries.
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests