Difference between revisions of "Cacti"

From HackerNet
Jump to: navigation, search
Line 6: Line 6:
 
Ställ klockan rätt
 
Ställ klockan rätt
  
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install snmpd snmp mysql-server apache2 libapache2-mod-php5 php5-mysql php5-cli php5-snmp php5-gd
+
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install snmpd snmp mysql-server apache2 libapache2-mod-php5 php5-mysql php5-cli php5-snmp php5-gd
sudo apt-get install cacti
+
 
 +
sudo apt-get install cacti
  
 
“libphp-adodb” = “Ok”.  
 
“libphp-adodb” = “Ok”.  
Line 19: Line 20:
  
 
==Weathermap==
 
==Weathermap==
 +
 +
En av de absolut coolaste grejerna med cacti är en plugin som heter weathermap
  
 
Download and unzip php-weathermap-latest.zip
 
Download and unzip php-weathermap-latest.zip
  
cp /home/USER/weathermap/ /usr/share/cacti/site/plugins -R
+
cp/mv /home/USER/weathermap/ /usr/share/cacti/site/plugins -R
  
 
Edit /usr/share/cacti/site/include/config.php, add:
 
Edit /usr/share/cacti/site/include/config.php, add:
  
nano include/config.php
+
nano include/config.php
 +
 
 +
$plugins = array();
  
$plugins = array();
+
$plugins[] = 'weathermap';
  
$plugins[] = 'weathermap';
+
sudo nano /usr/share/cacti/site/plugins/weathermap/editor.php
  
sudo nano /usr/share/cacti/site/plugins/weathermap/editor.php
+
$ENABLED=true;
  
$ENABLED=true;
+
sudo chown www-data /usr/share/cacti/site/plugins/weathermap/output
  
sudo chown www-data /usr/share/cacti/site/plugins/weathermap/output
+
sudo chown www-data /usr/share/cacti/site/plugins/weathermap/configs
  
sudo chown www-data /usr/share/cacti/site/plugins/weathermap/configs
+
sudo touch /usr/share/cacti/site/plugins/weathermap/configs/wmap.conf
  
sudo touch /usr/share/cacti/site/plugins/weathermap/configs/wmap.conf
+
sudo chown www-data /usr/share/cacti/site/plugins/weathermap/configs/wmap.conf
  
sudo chown www-data /usr/share/cacti/site/plugins/weathermap/configs/wmap.conf
+
Bilder laddas upp till /usr/share/cacti/site/plugins/weathermap/images/ och kan sedan väljas i editorn

Revision as of 13:24, 21 December 2014

Cacti

Installation Ubuntu 14.04

Börja med vår: up and running like pro instant pro guide [länk]

Ställ klockan rätt

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install snmpd snmp mysql-server apache2 libapache2-mod-php5 php5-mysql php5-cli php5-snmp php5-gd
sudo apt-get install cacti

“libphp-adodb” = “Ok”. “Configuring Cacti” = “Apache2” “Configuring cacti” = dbconfig-common MySQL = lösenordet du skapa tidigare

Logga in på webbgränsnittet http://[serverip]/cacti admin/admin

Weathermap

En av de absolut coolaste grejerna med cacti är en plugin som heter weathermap

Download and unzip php-weathermap-latest.zip

cp/mv /home/USER/weathermap/ /usr/share/cacti/site/plugins -R

Edit /usr/share/cacti/site/include/config.php, add:

nano include/config.php
$plugins = array();
$plugins[] = 'weathermap';
sudo nano /usr/share/cacti/site/plugins/weathermap/editor.php
$ENABLED=true;
sudo chown www-data /usr/share/cacti/site/plugins/weathermap/output
sudo chown www-data /usr/share/cacti/site/plugins/weathermap/configs
sudo touch /usr/share/cacti/site/plugins/weathermap/configs/wmap.conf
sudo chown www-data /usr/share/cacti/site/plugins/weathermap/configs/wmap.conf

Bilder laddas upp till /usr/share/cacti/site/plugins/weathermap/images/ och kan sedan väljas i editorn