diff --git a/dynmotd_scripts/06service b/dynmotd_scripts/06service index b319112..1370f7f 100755 --- a/dynmotd_scripts/06service +++ b/dynmotd_scripts/06service @@ -108,6 +108,17 @@ if [ $(which zfs) ]; then fi ### FI ZFS +### IF Ceph Monitor +## ceph-mon is installed with the 'ceph' package +# so we can't just check if `ceph-mon` is available on a system +if (grep "mon_initial_members.*$(hostname)" /etc/ceph/*.conf > /dev/null); then + MSG=$(process_info "ceph-mon" '') + MSG=$(service_info "6789" "${MSG}") + printf '%b' "\n${MSG}" +fi +### FI Ceph Monitor + + ### IF PUPPETMASTER if [ $(which puppetmaster) ]; then MSG=$(process_info "puppetmaster" '')