首页 > 其他 > 详细

监控elssticSearch健康状态

时间:2019-02-03 11:53:18      阅读:241      评论:0      收藏:0      [点我收藏+]

[4ajr@elk1 scripts]$ curl 172.30.210.175:9200/_cat/health 

[4ajr@elk1 scripts]$ cat check_es_healthy.py 

import commands

command = ‘172.30.210.175:9200/_cat/health‘

(a, b) = commands.getstatusoutput(command)

status = b.split(‘ ‘)

if status==‘red‘:

    healthy=0

else:

    healthy=1

 

 

print healthy

 

 

UserParameter=es_healthy,python /soft/zabbix_agent/scripts/check_es_healthy.py

 

zabbix模板,应用集,监控项,报警,图形

监控elssticSearch健康状态

原文:https://www.cnblogs.com/charon2/p/10349719.html

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