diff --git a/ceph/ceph/debian/deb_folder/ceph-base.ceph.init b/ceph/ceph/debian/deb_folder/ceph-base.ceph.init index b5d260408..21b1c05c3 100755 --- a/ceph/ceph/debian/deb_folder/ceph-base.ceph.init +++ b/ceph/ceph/debian/deb_folder/ceph-base.ceph.init @@ -375,7 +375,7 @@ is_process_hung() { elif [ "$type" = "mon" ]; then # Get monitor status info local mon_status=$UP - echo "$CEPH_HEALTH_DETAIL" | grep -q -e "^[[:space:]]*$name.*down" + echo "$CEPH_HEALTH_DETAIL" | grep -q -e "^[[:space:]]*$name[[:space:]].*down" if [ $? -eq 0 ]; then mon_status=$DOWN fi