Add Ceph-mon monitoring.

This commit is contained in:
Jeremy Gardais 2015-04-20 16:20:18 +02:00
parent 018e89c35b
commit a8fefd4702
1 changed files with 11 additions and 0 deletions

View File

@ -108,6 +108,17 @@ if [ $(which zfs) ]; then
fi fi
### FI ZFS ### 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 PUPPETMASTER
if [ $(which puppetmaster) ]; then if [ $(which puppetmaster) ]; then
MSG=$(process_info "puppetmaster" '') MSG=$(process_info "puppetmaster" '')