Use the correct socket file for the Ceph mon check.

Change-Id: If8c40c3c0501b78db88d3a7f33bf3838c0e60199
Closes-Bug: 1796313
This commit is contained in:
Matthew Heler 2018-10-20 10:03:57 -05:00 committed by Chris Wedgwood
parent b99d39dd95
commit 154fcd894f
1 changed files with 1 additions and 1 deletions

View File

@ -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?