Difference between revisions of "Centos 6 tasks"
From MyWiki
Line 18: | Line 18: | ||
Import the cacti database tables<br> | Import the cacti database tables<br> | ||
mysql -u cacti -p cacti < /usr/share/doc/cacti-0.8.8b/cacti.sql<br> | mysql -u cacti -p cacti < /usr/share/doc/cacti-0.8.8b/cacti.sql<br> | ||
+ | Open /etc/cacti/db.php file and edit the below lines:<br> | ||
+ | <source lang="text"> | ||
+ | $database_type = "mysql"; | ||
+ | $database_default = "cacti"; | ||
+ | $database_hostname = "localhost"; | ||
+ | $database_username = "cacti"; | ||
+ | $database_password = "cactipass"; | ||
+ | </source> |
Revision as of 09:55, 8 March 2016
Reference - http://idroot.net/tutorials/install-cacti-monitoring-on-centos-7/
Installing cactii in a Centos 6 docker container
yum install -y php php-mysql php-gd php-pear php-common php-cli php-devel php php-mbstring nano
yum install -y php-snmp net-snmp-utils net-snmp-libs rrdtool
chkconfig snmpd on
service snmpd start
yum install -y epel-release
yum install -y cacti
yum install -y mysql-server mysql
Then run "mysql_secure_installation"
Create the cacti database
MariaDB [(none)]> create database cacti; MariaDB [(none)]> GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY 'cactipass'; MariaDB [(none)]> FLUSH privileges; MariaDB [(none)]> quit;
Import the cacti database tables
mysql -u cacti -p cacti < /usr/share/doc/cacti-0.8.8b/cacti.sql
Open /etc/cacti/db.php file and edit the below lines:
$database_type = "mysql"; $database_default = "cacti"; $database_hostname = "localhost"; $database_username = "cacti"; $database_password = "cactipass";