Time for action – installing the CactiWMI add-on – Part 1
Logon to your Cacti server.
Change to the
/tmp
directory:cd /tmp
Download the Cacti WMI add-on (http://forums.cacti.net/download/file.php?id=16949):
wget –O CactiWMI.tgz
Extract the files from the archive:
tar -xzvf CactiWMI.tgz
Change into the created directory:
cd 0.0.6.r101/
Run the following commands. They will copy the
wmi
script to the correct Cacti path as well as create the necessary directories. Thechmod
commands change the permissions of the files so Cacti is able to perform WMI calls:cp wmi.php /var/www/html/cacti/scripts mkdir -p /etc/cacti mkdir -p /var/log/cacti/wmi chown cactiuser:cactiuser /etc/cacti -R chown cactiuser:cactiuser /var/log/cacti/wmi -R chmod 700 /etc/cacti -R chmod 700 /var/log/cacti/wmi –R
Now create the
auth.conf
file which will contain your WMI user credentials:vi /etc/cacti/cactiwmi.pw
The file should have the following format:
username=<your username> password=<your password> domain...