Permalink
Browse files

Update check_cluster

  • Loading branch information...
xoroz committed Aug 17, 2016
1 parent ca02415 commit 421d2707d0a84a9b4cd0276a0ba9bd805b3326f7
Showing with 1 addition and 1 deletion.
  1. +1 −1 check_cluster
View
@@ -10,7 +10,7 @@ fi;
clu_srv=$1
service1=`/usr/sbin/clustat|grep $clu_srv| awk {'print $1'}`
-service=`/usr/sbin/clustat|grep -c $clu_srv`
+service=`/usr/sbin/clustat|grep started|grep -c $clu_srv`
if [ $service -eq 0 ]; then
echo "CRITICAL - Service $clu_srv not running"
exit 2

0 comments on commit 421d270

Please sign in to comment.