* (#4) Add monitoring for Ceph OSD (process and few ports).

This commit is contained in:
gardouille 2015-05-05 15:58:45 +02:00
parent 3b7c342120
commit e22a7a8e75
2 changed files with 9 additions and 0 deletions

View File

@ -10,6 +10,7 @@
* (#2) Add Puppet tests.
* (#3) Correct ((LINE++)) -> BASH with LINE=$((LINE+1)) -> SH
* (#4) Add monitoring for Ceph Monitor (process and port).
* (#4) Add monitoring for Ceph OSD (process and few ports).
---------------------------------------

View File

@ -119,6 +119,14 @@ if (grep "mon_initial_members.*$(hostname)" /etc/ceph/*.conf > /dev/null); then
fi
### FI Ceph Monitor
### IF Ceph OSD
if (ceph osd tree | grep "host $(hostname)" > /dev/null 2> /dev/null); then
MSG=$(process_info "ceph-osd" '')
MSG=$(service_info "6800 6801 6802" "${MSG}")
printf '%b' "\n${MSG}"
fi
### FI Ceph OSD
### IF PUPPETMASTER
if [ $(which puppetmaster) ]; then
MSG=$(process_info "puppetmaster" '')