Time for action – installing the CactiWMI add-on – Part 2
Logon to your Linux Cacti server with root privileges.
Make sure you've got the subversion client installed:
yum install subversion
Checkout the latest version of the source files containing the wmic command:
svn checkout http://dev.zenoss.org/svn/trunk/wmi/Samba/source
Change into the source directory:
cd source
Run the
autogen
script to generate theconfigure
script:./autogen.sh
Run configure:
./configure
After the command finishes you can run the
make
all
command to compile all necessary binaries:make all
This will create the
bin
directory. Change into it:cd bin
Look for the
wmic
binary file and run it:# ls -l wmic -rwxr-xr-x 1 root root 6908608 Oct 17 18:28 wmic # ./wmic --version Version 4.0.0tp4-SVN-build-21646
Copy the
wmic
binary to/usr/local/bin
:cp wmic /usr/local/bin
What just happened?
You compiled the wmic
binary which is needed to poll the WMI service on Windows systems. You've made sure that it compiled properly...