Setup WMI monitoring/graphing

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

Moderators: Moderators, Developers

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

Setup WMI monitoring/graphing

#1 Post by Waterboy2020 » Sat Sep 14, 2019 5:45 pm

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: 3132
Joined: Sun Aug 27, 2017 12:05 am

Re: Setup WMI monitoring/graphing

#2 Post by netniV » Mon Sep 16, 2019 5:11 am

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.

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

Re: Setup WMI monitoring/graphing

#3 Post by Waterboy2020 » Mon Sep 16, 2019 12:50 pm

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: 314
Joined: Fri Feb 10, 2017 2:45 pm
Location: Long Island, New York, USA
Contact:

Re: Setup WMI monitoring/graphing

#4 Post by camerabob » Mon Sep 16, 2019 12:54 pm

See the Cacti 1.x templates I use at: http://www.camerabob.com/cacti

Live: Cacti 1.2.3 @ CentOS 7-6.1810.2.el7 & PHP 5.4.16-46.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

Test: Cacti 1.2.8-1.el7 @ CentOS 7-7.1908.0.el7 & PHP 5.4.16-46.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4

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

Re: Setup WMI monitoring/graphing

#5 Post by Waterboy2020 » Mon Sep 16, 2019 1:30 pm

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 Pro User
Posts: 889
Joined: Mon Jan 05, 2015 10:10 am

Re: Setup WMI monitoring/graphing

#6 Post by Osiris » Tue Oct 01, 2019 6:19 am

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