Cacti安装及模板导入 |
您所在的位置:网站首页 › 如何添加自选图形模板 › Cacti安装及模板导入 |
文章目录
前言
简介
安装
安装http以及php及php相关扩展
安装数据库mariadb,配置yum源:
安装snmp及其相关扩展(注意版本号得一致)
安装绘图工具RRDTool绘图工具
安装spine
安装中文字体
安装cacti
初始化cacti
应用
管理设备以及创建图形
加入树
建立定时任务,让系统每分钟更新一次
其它主机加入监控
添加自定义监控-IO监控
后记
前言
所以除了学习zabbix,我们也可以了解一下cacti。 但是不是有特别有必要 我们的实验环境是rhel7.6,安装的软件是cacti1.2. 简介Cacti是一套基于PHP,MySQL,SNMP及RRDTool开发的网络流量监测图形分析工具。他的架构如下图所示: 更改php时区设置: 安装mariadb: yum install -y MariaDB-server MariaDB-client MariaDB-devel启动并设置为开机启动: systemctl start mariadb && systemctl enable mariadb初始化数据库,设置新密码: [root@server1 ~]# mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! ...... Enter current password for root (enter for none): //初始数据库密码为空,直接按回车键 OK, successfully used password, moving on... ...... Set root password? [Y/n] Y //输入root管理员密码 New password: Re-enter new password: Password updated successfully! ...... Remove anonymous users? [Y/n] Y //删除匿名账号 ... Success! ...... Disallow root login remotely? [Y/n] Y //禁止root管理员从远程登录 ... Success! ....... Remove test database and access to it? [Y/n] Y //删除test数据库并取消对它的访问权限 ...... Reload privilege tables now? [Y/n] Y //刷新授权表,让初始化后的设定立即生效 ... Success!修改数据库的配置: [root@cacti ~]# vim /etc/my.cnf.d/server.cnf [server] # this is only for the mysqld standalone daemon character_set_server = utf8mb4 collation-server = utf8mb4_unicode_ci max_heap_table_size = 256M max_allowed_packet = 16777216 tmp_table_size = 64M join_buffer_size = 64M innodb_file_per_table = ON innodb_buffer_pool_size = 1024M innodb_doublewrite = OFF innodb_flush_log_at_timeout = 3 innodb_read_io_threads = 32 innodb_write_io_threads =16 innodb_file_format = Barracuda innodb_large_prefix = 1 安装snmp及其相关扩展(注意版本号得一致) yum install –y net-snmp net-snmp-libs net-snmp-utils net-snmp-devel net-snmp-perl配置snmp(注意行号) [root@server1 ~]# vim /etc/snmp/snmpd.conf 41 com2sec notConfigUser 192.168.1.111 public 62 access notConfigGroup "" any noauth exact all none none 85 view all included .1 80开启snmp并设置为开机启动 systemctl start snmpd.service && systemctl enable snmpd.service 安装绘图工具RRDTool绘图工具安装编译时必要的工具 yum -y install lm_sensors gcc gcc-c++ libart_lgpl-devel zlib-devel libpng-devel freetype-devel glib2-devel pcre-devel pango-devel cairo-devel libxml2-devel perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker下载rrdtool |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |