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...
Argentina
Australia
Austria
Belgium
Brazil
Bulgaria
Canada
Chile
Colombia
Cyprus
Czechia
Denmark
Ecuador
Egypt
Estonia
Finland
France
Germany
Great Britain
Greece
Hungary
India
Indonesia
Ireland
Italy
Japan
Latvia
Lithuania
Luxembourg
Malaysia
Malta
Mexico
Netherlands
New Zealand
Norway
Philippines
Poland
Portugal
Romania
Russia
Singapore
Slovakia
Slovenia
South Africa
South Korea
Spain
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine
United States