======= 系列目录 =======
Zabbix监控系统系列之一 : Server部署
Zabbix监控系统系列之二 : 初始化配置
Zabbix监控系统系列之三 :版本升级
Zabbix监控系统系列之四:Agent监控Windows客户端
Zabbix监控系统系列之五:SNMP监控Windows客户端
Zabbix监控系统系列之六:EMAIL警告配置
Zabbix监控系统系列之七:VMware虚拟化监控
Zabbix监控系统系列之八:日志监控
Zabbix监控系统系列之九:监控网络设备指定接口流量
Zabbix监控系统系列之十:自动发现配置
Zabbix监控系统系列之十一:拓扑图绘制
Zabbix监控系统系列之十二:SNMP Traps主动告警
Zabbix监控系统系列之十三:SNMP Mibs库加载
Zabbix监控系统系列之十四:Oracle监控
Zabbix监控系统系列之十五:自动发现Oracle表空间并监控
======================

zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案。它的监控方式非常之多,如下列举是一部分例子:
在这里插入图片描述

[系统配置]
NTP时间同步设置
yum -y install ntpdate
ntpdate cn.ntp.org.cn
systemctl enable ntpdate

关闭SELINUX
setenforce 0
sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/’ /etc/selinux/config
systemctl stop firewalld.service
systemctl disable firewalld.service ?

[Zabbix Server部署]
Repo源部署
rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-1.el7.centos.noarch.rpm

Zabbix Server部署
yum install zabbix-server-mysql zabbix-web-mysql zabbix-get zabbix-proxy-mysql

[Zabbix数据库配置]
Mysql Server安装
yum install http://repo.mysql.com//mysql57-community-release-el7-9.noarch.rpm
yum install mysql-community-server
※ 默认密码记录在/var/log/mysqld.log日志,可以检索password关键字;

Mysql Server服务启动
systemctl enable mysqld.service
systemctl start mysqld.service

Mysql Server初始化密码
systemctl stop mysqld.service
mysqld-debug --user=mysql --skip-grant-tables --skip-networking &
mysql -u root -p mysql
update user set authentication_string = password(‘root’), password_expired = ‘N’, password_last_changed = now() where user = ‘root’;
flush privileges;
exit;

Mysql密码策略调整
set global validate_password_policy=0;
set global validate_password_mixed_case_count=2;
set global validate_password_length=1;
SHOW VARIABLES LIKE ‘validate_password%’;

创建Zabbix数据库
create database zabbix character set utf8;

创建Zabbix用户
create user ‘zabbix’@‘localhost’ identified by ‘zabbix’;
grant all privileges on zabbix.* to ‘zabbix’@‘localhost’;
flush privileges;

导入Zabbix数据库
zcat /usr/share/doc/zabbix-server-mysql-3.4.0/create.sql.gz | mysql -uzabbix -p zabbix

[Zabbix Server配置]
Zabbix数据库文件配置
vi /etc/zabbix/zabbix_server.conf
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix

自动启动Zabbix服务
systemctl start zabbix-server
systemctl enable zabbix-server
systemctl start httpd.service
systemctl enable httpd.service

时区参数配置
vi /etc/php.ini
date.timezone =Asia/Shanghai

vi /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai

systemctl restart httpd.service

[Zabbix Server初始化向导]
浏览器 http://NetworkAddress/zabbix/
在这里插入图片描述
环境需求检查
在这里插入图片描述

配置数据库信息
在这里插入图片描述
Zabbix Server 详细配置
在这里插入图片描述
安装信息确认
在这里插入图片描述
安装成功
在这里插入图片描述
后台登录
默认账号:Admin 默认密码:zabbix
在这里插入图片描述

Logo

更多推荐