Cacti WMI 1 – Installing The WMI Client

Cacti WMI 1 – Installing The WMI Client

Introduction

This article explains how to add WMI capability to a CentOS 5.5 Cacti server so that it can enumerate Performance Counter information from a Windows 2003 server.

This allows a wider range of statistics to be graphed in Cacti for a Windows 2003 server including some which are unavailable through SNMP without purchasing additional software.

Adding The Atomic Repository

The first part of installing the WMI (Windows Management Instrumentation) client on to the server which is held in the Atomic repository is to add the repository to the server.  To add the Atomic repository to the server perform the following steps :-

  • In the command line execute the following command :-

wget -q -O – http://www.atomicorp.com/installers/atomic | sh

  • When prompted accept the agreement
  • When prompted select OK to install the package

Installing The WMI Client

The next part is to install the WMI client package from the Atomic Repository and to do this perform the step below :-

  • In the command prompt execute the following command :-

yum install wmi

  • When prompted select OK to install the package

Testing The WMI Client

To test that the WMI client is installed and working perform the following steps :-

  • In the command prompt execute the following command :-

wmic -U {Domain Name}/{Admin User}%{Admin Password //{Host} “select * from Win32_ComputerSystem”

E.G. wmic -U Example/Administrator%password //examplehost “select * from Win32_ComputerSystem”

  • Replace the {Domain Name}. {Admin User}, {Admin Password}, and {Host} with your relevant settings
  • The command will return a list of WMI information it can enumerate from the Win32_ComputerSystem Class on the host server.