es监控

more es_check_available.sh

#!/bin/bash
available_flag=`curl -s -H "Content-Type: application/json" http://172.17.10.120:19200/?pretty|grep cluster_name|wc -l`
if [ $available_flag -eq 1 ] ; then
echo "ok"
else
echo "failed"
fi

posted @ 2019-09-20 10:17  slnngk  阅读(289)  评论(0编辑  收藏  举报