ceph-nagios-plugins icon indicating copy to clipboard operation
ceph-nagios-plugins copied to clipboard

Adjust to work with Octopus installed via cephadm

Open romulus-ai opened this issue 4 years ago • 1 comments
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():

romulus-ai avatar Feb 08 '21 12:02 romulus-ai

On the other hand it makes much more sence to use prometheus or similar to monitor such a volatile system

romulus-ai avatar Feb 08 '21 12:02 romulus-ai