zabbix监控apache80端口

1.修改zabbix_agentd.conf

修改# EnableRemoteCommands=0 -->去掉注释修改为1--> EnableRemoteCommands=1  ###允许客户端远程执行命令(0拒绝,1允许)

2.visudo

3.配置监控主机的item和Triggers

配置和修改item-->修改够save即可

 配置Triggers-->添加之后save

5.配置actions

主要讲解配置operations

configuration-->actions--创建create action

选择Operation type为执行远程命令-->target list(目标主机列表)选择目标主机-->type(告警方式)选择custom script-->Execute on(执行条件)选择在客户端或者服务端执行-->commands写入需要执行的命令。

猜你喜欢

转载自www.cnblogs.com/The-day-of-the-wind/p/9257498.html
今日推荐