首页 > 其他 > 详细

zabbix之 定义action 包括condition和operations(6)

时间:2016-12-07 14:46:30      阅读:1091      评论:0      收藏:0      [点我收藏+]


(a)定义action 包括 conditions 和 operations

configuration --> actions --> create action
action conditions operations

此时,我们添加一个item 对agent端的http服务80端口检测

并添加trigger 设置一旦最后一次探测值为0 就触发 action


技术分享



技术分享



技术分享



技术分享


观察过程 monitoring --> events

可以定义多个operations    zabbix server 会按照步骤依次执行

operations 包括 send message 和 remote command 还有 发现主机等等 很多


(b)报警脚本


技术分享



技术分享



技术分享



技术分享



技术分享



技术分享




[root@zabbixserver ~]# vim /usr/lib/zabbix/alertscripts/sendmail.sh 
--> 必须在特定的目录下(服务器端)
#!/bin/bash
contact=$1
subject="$2"
body="$3"
echo "$body" | mail -s "$subject" "$contact"


本文出自 “似水流年” 博客,请务必保留此出处http://sixijie123.blog.51cto.com/11880770/1880226

zabbix之 定义action 包括condition和operations(6)

原文:http://sixijie123.blog.51cto.com/11880770/1880226

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!