青野 发表于 2019-1-9 13:11:51

cacti安装配置与添加客户端

  一、服务端
  cacti安装配置
  1. 首先要安装epel扩展源
  yum install epel-release
  2. (lamp)然后分别安装httpd、php、mysql
  yum install -yhttpd php php-mysqlmysql mysql-server mysql-devel php-gd libjpeg libjpeg-devel libpng libpng-devel
  3. 安装cactinet-snmp rrdtool
  yum install -y cactinet-snmp net-snmp-utilsrrdtool (lm_sensors不出图可能需要安装的包)
  4. 启动服务:
  /etc/init.d/mysqld start
  /etc/init.d/httpdstart
  /etc/init.d/snmpd start
  5. 编辑httpd配置文件
  vim /etc/httpd/conf.d/cacti.conf
  把"Deny from all" 改为"Allow from all"
  /etc/init.d/httpdrestart
  6.导入数据创建cacti库
  mysql -uroot-e "create database cacti"
  创建cacti用户
  mysql -uroot -e "grant all on cacti.*to 'cacti'@'127.0.0.1' identified by 'cacti';"
  导入sql文件
  mysql -uroot cacti
页: [1]
查看完整版本: cacti安装配置与添加客户端