I use icinga2 as well with a check_ceph.py that I
wrote a couple years ago. The method I use is that icinga2 runs
the check from the icinga2 host itself. ceph-common is installed
on the icinga2 host since the check_ceph script is a wrapper and
parser for the ceph command output using python's subprocess. The
script takes a conf, id, and keyring argument so it acts like a
ceph client and only the conf and keyring need to be present. I
added a cephx user for the icinga checks. I also use icinga2,nrpe,check_proc to check the
correct number of osd/mon/mgr/mds are running on a host. # ceph auth get client.icinga exported keyring for client.icinga [client.icinga] key = <nope> caps mgr = "allow r" caps mon = "allow r" I just realized my script on github is the first or second result when googling for icinga2 ceph checks so there is a chance you are trying to use the same thing as me. Kevin On 06/19/2018 07:17 AM, Denny Fuchs
wrote:
Hi, |
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com