[root@zabbix ~]# ls nginx-1.20.2-1.el7.ngx.x86_64.rpm php72.tar.gz 1. 2. 软件安装 方式一 安装php7.1版本 yum -y install php71w php71w-cli php71w-common php71w-devel \ php71w-embedded php71w-gd php71w-mcrypt php71w-mbstring php71w-pdo php71w-xml \ php71w-fpm php71w...
#开机启动 zabbix-agent2 systemctl enable --now zabbix-agent2 #查看端口 yum -y install net-tools netstat -tnlp|grep zabbix #查看验证zabbix-agent2.service文件,需要详细也可以cat查看 ls /lib/systemd/system/zabbix-agent2.service grep -Ev ‘#|$’ /etc/zabbix/zabbix_agent2.conf ps -ef|grep ...
rpm -Uvh https://repo.zabbix.com/zabbix/7.0/rhel/7/x86_64/zabbix-release-7.0-1.el7.noarch.rpm yum clean all 安装agent2 yum install zabbix-agent2 zabbix-agent2-plugin-* 编辑配置文件 vim /etc/zabbix/zabbix_agent2.conf 编辑server、serveractive、hostname字段 server\serveractive填写服务器地址 ...
yum -y install net-tools netstat -tnlp |grep zabbix [root@zabbix-agent01 ~]# netstat -tnlp |grep zabbix tcp6 0 0 :::10050 :::* LISTEN 21691/zabbix_agent2 #修改agent2配置文件,查看配置信息 #排除agent2配置文件中的#和空格,显示主要内容 grep -Ev '^#|^$' /etc/zabbix/zabbix_agent2.con...
2、安装zabbix agent [root@test1 opt]# yum install -y zabbix-agent … Installed: zabbix-agent.x86_64 0:5.2.5-1.el7 Complete! 3、配置zabbix_agentd.conf [root@test1 ~]# vim /etc/zabbix/zabbix_agentd.conf [root@test1 ~]# cat /etc/zabbix/zabbix_agentd.conf |grep -Ev “$|#” ...
yum install zabbix-agent -y 3.修改配置文件 zabbix server端IP Server=127.0.0.1 zabbix server端IP ServerActive=127.0.0.1 zabbix客户端主机名 Hostname=Zabbix server 4.启动zabbix_agent服务 systemctl start zabbix-agent.service 服务端配置 创建主机 ...
主动(Active):agent请求server获取主动的监控项列表,server 将监控项回复给agent,agent将监控项内需要检测的数据提交给server/proxy。 被动(Passive):server向agent请求获取监控项的数据,agent返回数据。 go安装文档 https://go.dev/doc/install go程序下载 https://go.dev/dl/ zabbix_agent2源码包下载 https://ww...
rpm-Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpmyum install-y zabbix-agent2 1. 2. 查看安装目录。 安装目录 修改配置:vim。 /etc/zabbix/zabbix_agent2.conf。 关闭防火墙和SELinux状态。 启动客户端:systemctl start zabbix-agent2。
[Install] WantedBy=multi-user.target 修改zabbix_agent2二进制文件selinux启动权限: chcon -t bin_t /usr/local/zabbix/sbin/zabbix_agent2 配置防火墙: firewall-cmd --zone=public --add-port=10050/tcp --permanent firewall-cmd --reload 启动zabbix-agent2: ...
用zabbix agent2自带模板监控MySQL的Threads,Queries,InnoDB buffer pool,Operations, Connections 简单易懂,不需要自己写监控脚本。当数据库性能超过阈值时,生成告警通知管理员 ,DB可以快速排查故障问题以及规划容量 。