本文共 1526 字,大约阅读时间需要 5 分钟。
一、zabbix安装
配置添加zabbix的yum源wget -O /etc/yum.repos.d/CentOS-Base.repo wget -O /etc/yum.repos.d/epel.repo rpm -ivh 清除缓存yum clean all创建缓存yum makecache安装zabbix初始化mysql、zabbix数据库yum -y install zabbix-server-mysql zabbix-web-mysql mariadb-server zabbix-agent 启动mariadbsystemctl start mariadbsystemctl enable mariadbmysql_secure_installationcreate database zabbix character set utf8 collate utf8_bin;grant all privileges on zabbix.* to zabbix@localhost identified by '123456';zcat /usr/share/doc/zabbix-server-mysql-4.0.6/create.sql.gz|mysql -uzabbix -p123456 zabbix配置zabbixvim /etc/httpd/conf.d/zabbix.conf修改时间php_value date.timezone Asia/Shanghai启动httpd并设置为开机自启systemctl start httpdsystemctl enable httpd修改zabbix_server密码vim /etc/zabbix/zabbix_server.confDBPassword=123456启动zabbix-server并设置为开机自启systemctl start zabbix-serversystemctl enable zabbix-server添加server_agent配置文件server的ipvim /etc/zabbix/zabbix_agentd.confServer=zabbix_server的ip启动zabbix-agent并设置为开机自启systemctl start zabbix-agentsystemctl enable zabbix-agent访问zabbix页面 ip/zabbix修改zabbix server 的ip地址二、安装配置Grafana下载安装包wget 安装编译环境yum install initscripts fontconfig解压安装grafanarpm -ivh grafana-4.2.0-1.x86_64.rpm启动并设置为开机自启systemctl start grafana-server.servicesystemctl enable grafana-server.service访问grafana(用户名和密码都是admin)安装插件安装grafana-cligrafana-cli plugins install alexanderzobnin-zabbix-app重启grafana_serversystemctl restart grafana-server连接zabbix,写上zabbix的ip添加用户名、密码、版本创建仪表盘监控转载于:https://blog.51cto.com/14241151/2378603