cacti简单安装部署
目录
2. cacti安装向导 url:http://192.168.200.243/cacti/install/ 2
8.3、 nagios+cacti+npc错误 ndo2db-3x: mysql_error: 'Unknown column 'long_output' in 'field list'' 18
C/S模式,采集监控数据
B/S模式,管理监测平台
环境依赖包部署
部署网址:http://www.bubuko.com/infodetail_91725.html
环境:主机A和主机B的操作系统为CentOS6.8 x86_64,均关闭SELINUX和防火墙,主机A作为监控端,主机B作为被进口欧冠端,IP地址分别为192.168.200.243和192.168.200.244
部署cacti依赖环境安装
# yum -y install httpd mysql mysql-server mysql-devel php php-mysql zlib freetype libjpeg fontconfig libxml2 gd php-gd rrdtool net-snmp net-snmp-utils
# service httpd restart
# service snmpd restart
# service mysqld restart
# chkconfig httpd on
# chkconfig mysqld on
# chkconfig snmpd on
vim /var/www/html/index.php
<?php
phpinfo();
?>
-
cacti中文版0.8e搭建
Cacti安装
# tar -zxvf cacti-0.8.7e-cn-utf8.tar.gz -C /var/www/html/
# mv cacti-0.8.7e-cn-utf8/ cacti
# mv cacti /var/www/html/
# chown -R root:root /var/www/html/cacti/
# chmod -R 777 /var/www/html/cacti/
# useradd cacti
# chown -R cacti:cacti /var/www/html/cacti/log/
# chown -R cacti:cacti /var/www/html/cacti/rra/
# vim cacti/include/config.php
s
# mysql
mysql> create database cacti default character set utf8;
mysql> grant all on cacti.* to 'cacti'@'localhost' identified by 'cacti';
mysql> flush privileges;