diff --git a/ceph-mon/templates/bin/mon/_check.sh.tpl b/ceph-mon/templates/bin/mon/_check.sh.tpl index e494540d9..00d178348 100644 --- a/ceph-mon/templates/bin/mon/_check.sh.tpl +++ b/ceph-mon/templates/bin/mon/_check.sh.tpl @@ -36,7 +36,7 @@ function heath_check () { fi if [ -S "${SOCKDIR}/${SBASE}.${MON_NAME}.${SSUFFIX}" ]; then - MON_STATE=$(ceph -f json-pretty --connect-timeout 1 --admin-daemon "${sock}" mon_status|grep state|sed 's/.*://;s/[^a-z]//g') + MON_STATE=$(ceph -f json-pretty --connect-timeout 1 --admin-daemon "${SOCKDIR}/${SBASE}.${MON_NAME}.${SSUFFIX}" mon_status|grep state|sed 's/.*://;s/[^a-z]//g') echo "MON ${MON_ID} ${MON_STATE}"; # this might be a stricter check than we actually want. what are the # other values for the "state" field?