Use the correct socket file for the Ceph mon check.
Change-Id: If8c40c3c0501b78db88d3a7f33bf3838c0e60199 Closes-Bug: 1796313
This commit is contained in:
parent
b99d39dd95
commit
154fcd894f
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user