I've used the cacti plugin and i've looked at a few alternatives and nothing really fit the bill for our monitoring at work. So after some stuffing about i've put together a package of bits and pieces which we now use to monitor a number of statistics on our windows servers from our linux cacti server.
The images below are examples of what I have and I can easily add more without any trouble. Apologies for the size of the images (dimension wise) as I have wide screen monitors at work and home
The current "release" so to speak is via SVN repository which you can grab here http://svn.parkingdenied.com/CactiWMI/tags/ or alternatively grab the attached zip file which should include everything you need minus the wmic binary which you can grab from the latest debian package wmi-client. Newer releases can be found throughout this thread or alternatively by grabbing a release from the tags section of SVN.
The following instructions are now defunct. Please see the included readme which is included in each release.
Now you will need to make sure your windows hosts allow remote WMI queries from the credential you use, you can find this info on MSDN as I don't have it on hand but can dig it up if need be. Alternatively if you want to live dangerously you can use an admin credential.Extract the wmi.php and wmi-logins.php file to your cacti scripts folder.
Open the wmi-logins.php file and add in your own credential. Rather than use a username/password specified in cacti I use a simple reference to the credential which makes adding a lot of data sources much faster and also means you don't see your passwords spammed throughout the cacti log file.
So simply update the line with another like the following and also update the data templates if you don't want to use the default one I have been using during testing which was credential...Now by default the wmi.php script looks for the wmi-logins.php file in the same location as itself which should be your scripts folder. You will need to update this if you wish to separate these and it can be done by editing the line below in the wmi.php file.Code: Select all
$logins['cacti'] = array('Domain/Username','Password');
Code: Select all
include('/path/to/wmi-logins.php');
Now that that's done you should be able to add in the templates which are in the attached zip file and start graphing your hosts. I've tried to make these as simple as possible but if you do have any issues check the paths to things and make sure its all ok and also check your poller cache and try running exactly what cacti would be running to confirm you get output.
Have fun!
Bugtracker: http://mantis.parkingdenied.com
Latest SVN: http://svn.parkingdenied.com/CactiWMI/trunk
Memory Usage
Disk Space
Disk I/O
CPU Usage (1,2,4 and 8 core tested)
SQL Performance
NTDS LDAP Connections
NTDS LDAP Performance
NTDS DS Performance
NTDS Auth Performance
Merry Christmas!
http://www.parkingdenied.com