check.sh 154 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 #! /bin/bash stat=$(ps -ef | grep '/Data/local/metric/plugin/jmx.monitor' | grep -v grep | wc -l) if [ ${stat} -eq 1 ]; then exit 0 else exit 1 fi