监控三剑客:cacti nagios zabbix
热门监控 prometheus 适合云端监控
rrdtool 回环数据库
报警
首先查看php版本
yum list php 各种版本一定要一致
php 5.4.16-42
mariadb-server
php-mysql
scp php-bcmath-5.4.16-42.el7.x86_64.rpm php-mbstring-5.4.16-42.el7.x86_64.rpm server1:/root/4.0
yum install zabbix-server-mysql-4.0.5-1.el7.x86_64.rpm zabbix-web-4.0.5-1.el7.noarch.rpm zabbix-web-mysql-4.0.5-1.el7.noarch.rpm fping-3.10-1.el7.x86_64.rpm iksemel-1.4-2.el7.centos.x86_64.rpm php-bcmath-5.4.16-42.el7.x86_64.rpm php-mbstring-5.4.16-42.el7.x86_64.rpm -y zabbix-agent.x86_64 0:4.0.5-1.el7
yum install mariadb -y
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by 'westos';
quit;
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -pwestos zabbix
zabbix是前端
vim /etc/zabbix/zabbix_server.conf
vim /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai
systemctl start zabbix-server zabbix-agent
172.25.11.1/zabbix
Admin
zabbix
然后刷新修改为中文