侧边栏壁纸
博主头像
liveJQ博主等级

沒有乐趣,何来开始

  • 累计撰写 146 篇文章
  • 累计创建 60 个标签
  • 累计收到 2 条评论

安装 Cacti 0.8.8a 后的配置

liveJQ
2022-06-22 / 0 评论 / 0 点赞 / 21 阅读 / 744 字 / 正在检测是否收录...
广告 广告

系统 CentOS 6.10

初始化

修改主机IP、修改 Apache 端口54002、修改 SSH 端口 5432、iptables 放行 54002和5432

导入数据库

mysql -uroot -p cacti < /var/www/html/cacti-backup.sql

导入自定义 auth_login.gif 到 /var/www/html/images 目录

更新 yum

wget -O /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/repo/Centos-6.repo
wget -O /etc/yum.repos.d/epel.repo http://file.kangle.odata.cc/repo/epel-6.repo
yum clean all && yum makecache && yum update

消除 rrdtool 水印

yum erase rrdtool -y && yum install rrdtool -y

原来 rrdtool-1.4.7 的版本,会变成 rrdtool-1.3.8,因此需要之后在 Cacti>Settings 中修改下版本

恢复 Zoom Graph

修改 graph_xport.php和 graph_image.php 这两个文件,将1600000000中的1改成2或更大的数字后保存

修改 crontab

/etc/crontab将 Poller 默认的每5分钟修改为每1分钟

重启服务

service httpd restart
service sshd restart
service iptables restart
service crond restart
service snmpd restart
0

评论区