zabbix常用命令汇总

2022-09-19 16:18:10 浏览数 (2)

# agent端

代码语言:javascript复制
1. sgent状态
systemctl status zabbix-agent
2. 启动
systemctl start zabbix-agent
3. 停止
systemctl stop zabbix-agent
4. 查看防火墙
systemctl status firewalld
5. 开启10050端口
firewall-cmd --zone=public --add-port=10050/tcp --permanent
/sbin/iptables -I INPUT -p tcp --dport 10050 -j ACCEPT
systemctl stop firewalld.service
6. 查看端口通不通
telnet 192.168.0.20 10050

# server端


代码语言:javascript复制
1. 重启
systemctl restart zabbix-server

0 人点赞