zabbix常用命令汇总
# zabbix5.0常用命令汇总
# agent端
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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
# server端
1. 重启
systemctl restart zabbix-server
1
2
2