Install Cacti on Ubuntu 14.04 Server


Based on Ubuntu 14.04 Server


1. aptitude -y install snmpd cacti cacti-spine


vi /etc/hosts


vi /etc/apache2/apache2.conf
ServerName xxx

service apache2 restart

vi /etc/snmp/snmpd.conf
#  Listen for connections from the local system only
#agentAddress  udp:127.0.0.1:161
#  Listen for connections on all interfaces (both IPv4 *and* IPv6)
agentAddress udp:161,udp6:[::1]:161

#view   systemonly  included   .1.3.6.1.2.1.1
view   systemonly  included   .1
#view   systemonly  included   .1.3.6.1.2.1.25.1

service snmpd restart

2. to first configure cacti

http://<yourserver>/cacti

default login: admin/admin


3. general configration

wKiom1OjuVqARUIPAAS13oeqyGA082.jpg

wKiom1OjuVrAz0rBAAQbdAofa4M904.jpg

wKioL1OjuSySkYfDAAOnbrBd5lQ823.jpg


4. add cacti server for monitoring


wKiom1OjvqyD4UOxAAI7Lbju6R8056.jpg

wKioL1Ojvn_zRr7gAAV1s0bvGII403.jpg

wKioL1Ojvn_DRniiAAQNULtCjZY011.jpg


5. add to Graph Tree



6. install realtime plugins

cd /usr/share/cacti/site/plugins

wget http://docs.cacti.net/_media/plugin:realtime-v0.5-2.tgz

mv plugin\:realtime-v0.5-2.tgz realtime-v0.5-2.tgz

tar zxf realtime-v0.5-2.tgz

cd realtime

mkdir cache; chmod 777 cache

你可能感兴趣的:(cacti)