zabbix3.4监控系统安装部署
系统运维
创新互联长期为成百上千家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为房山企业提供专业的成都做网站、网站建设,房山网站改版等技术服务。拥有10余年丰富建站经验和众多成功案例,为您定制开发。
vim /etc/hostname ,修改为zabbix-server
vim /etc/sysconfig/network-scripts/ifcfg-eno16780032
systemctl stop firewalld.service
systemctl disable firewalld.service
vim /etc/selinux/config,修改为:SELINUX=disabled
rpm -Uvh https://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
yum clean all
yum makecache
yum -y install zabbix-server-mysql zabbix-web-Mysql zabbix-agent
systemctl restart zabbix-server zabbix-agent httpd
systemctl enable zabbix-server zabbix-agent httpd
wget https://CDN.MYSQL.com/archives/mysql-5.6/MySQL-server-5.6.43-1.el7.x86_64.rpm
wget https://cdn.mysql.com//Downloads/MySQL-5.6/MySQL-client-5.6.43-1.el7.x86_64.rpm
rpm -ivh MySQL-server-5.6.43-1.el7.x86_64.rpm --force -nodeps
rpm -ivh MySQL-client-5.6.43-1.el7.x86_64.rpm --force --nodeps
mkdir -p /data/mysql/
chown -R mysql.mysql /data/mysql/
vim /etc/my.cnf
/usr/bin/mysql_install_db --user=mysql --datadir=/data/mysql --pid-file=/data/mysql/mysql.pid
/etc/init.d/mysql restart
mysqladmin -h 127.0.0.1 -uroot -p password
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by \'zabbix\'
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
vim /etc/httpd/conf.d/zabbix.conf
修改此行:php_value date.timezone Asia/Shanghai
systemctl restart httpd
http://192.168.8.133/zabbix/
在Adminstration-->Users下面找到对应的用户,点进去,找到Language,选择Chinese(zh_CN),更新后,刷新页面即可切换为中文界面。
centos7:
rpm -Uvh https://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
yum -y install zabbix-agent
systemctl enable zabbix-agent
sed -i \'s/Server=127.0.0.1/Server=192.168.8.133/\' /etc/zabbix/zabbix_agentd.conf
sed -i \'s/ServerActive=127.0.0.1/ServerActive==192.168.8.133/\' /etc/zabbix/zabbix_agentd.conf
echo 192.168.8.133 Zabbix server >> /etc/hosts
systemctl restart zabbix-agent
配置zabbix-server服务器的hosts
vim /etc/hosts
包含服务端和所有客户端的主机
根据监控需要完成监控项目的配置
分享题目:zabbix3.4监控系统安装部署
网页URL:http://azwzsj.com/article/cjdicc.html