Correct 'ceph osd' cmd with default user.
This commit is contained in:
parent
0406b54e46
commit
3ea5a7bc41
|
@ -128,15 +128,15 @@ if [ $(command -v ceph) ]; then
|
|||
fi
|
||||
|
||||
# 3: test OSD
|
||||
CEPH_OSD_OK=$(ceph osd tree --id ${CEPH_USERNAME} | grep -i -- "host $(hostname)" 2> /dev/null)
|
||||
CEPH_OSD_OK=$(ceph osd tree | grep -i -- "host $(hostname)" 2> /dev/null)
|
||||
if [ "${CEPH_OSD_OK}" ]; then
|
||||
MSG=$(process_info "ceph-osd" "${MSG}")
|
||||
MSG=$(service_info "6800 6801 6802" "${MSG}")
|
||||
printf '%b' "\n${MSG}"
|
||||
fi
|
||||
|
||||
# Reset color
|
||||
printf '%b' "${RESET}\n"
|
||||
fi
|
||||
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue