#!/bin/bash
#################################################
#
#      Filename: monitor_flow_deleter_stat.sh
#
#        Author: mark.tang@ucloud.cn
#   Description: check flow_deleter stat
#        Create: 2021-12-24 15:15:07
# Last Modified: 2021-12-24 16:38:24
#################################################
ps -ef | grep -i flow_deleter.rb | grep -v grep 1>/dev/null 2>&1
is_flow_deleter_runnig=`echo $?`

if [ "$is_flow_deleter_runnig" -ne 0 ];then
    echo '[{"value":0,"tags":""}]'
    exit 0
else
    echo '[{"value":1,"tags":""}]'
    exit 0
fi
