From 154fcd894f5385ca43a4229d5ad738f093853e77 Mon Sep 17 00:00:00 2001 From: Matthew Heler Date: Sat, 20 Oct 2018 10:03:57 -0500 Subject: [PATCH] Use the correct socket file for the Ceph mon check. Change-Id: If8c40c3c0501b78db88d3a7f33bf3838c0e60199 Closes-Bug: 1796313 --- ceph-mon/templates/bin/mon/_check.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?