ceph-nagios-plugins
ceph-nagios-plugins copied to clipboard
Adjust to work with Octopus installed via cephadm
trafficstars
In Octopus the default way to install ceph is to use cephadm, which runs all the ceph daemons in Docker Containers. However, therefore the Ceph Nodes will have names conatining the Container ID. Especially the MDS Check is not working anymore in this case.
As a quick workaround, I suggest to make a substring check for the hostname instead of an exact string match, this should prevent reconfiguration of the nagios check.
replace Line 109 by:
if name in mds.get_name():
and replace line 118 by:
if not name in mds.get_name():
On the other hand it makes much more sence to use prometheus or similar to monitor such a volatile system