feat - add ceph check

This commit is contained in:
Ludovic Cartier
2026-04-24 21:29:27 +02:00
parent 9b2412c775
commit 2dc995209c
4 changed files with 122 additions and 0 deletions
+9
View File
@@ -145,3 +145,12 @@ command[check_nvme_temperature]=/usr/bin/sudo /usr/lib/nagios/plugins/check_nvme
# zpool
command[check_zpool_health]=/usr/bin/sudo /usr/lib/nagios/plugins/check_zpool_health {{ nrpe_zpool_name }}
{% endif %}
{% if nrpe_ceph is defined %}
# ceph
command[check_ceph_health]=/usr/lib/nagios/plugins/check_ceph health
command[check_ceph_osd]=/usr/lib/nagios/plugins/check_ceph osd
command[check_ceph_mon]=/usr/lib/nagios/plugins/check_ceph mon
command[check_ceph_cap]=/usr/lib/nagios/plugins/check_ceph cap
command[check_ceph_pg]=/usr/lib/nagios/plugins/check_ceph pg
{% endif %}
+8
View File
@@ -35,4 +35,12 @@ nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_pvesr
{% if nrpe_nvme_device is defined %}
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_nvme_smart -d {{ nrpe_nvme_device }} -w {{ nrpe_nvme_smart_warning }} -c {{ nrpe_nvme_smart_critical }}
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_nvme_temperature -d {{ nrpe_nvme_device }} -w {{ nrpe_nvme_temperature_warning }} -c {{ nrpe_nvme_temperature_critical }}
{% endif %}
{% if nrpe_ceph is defined %}
nagios ALL=(ALL) NOPASSWD: /usr/bin/ceph health
nagios ALL=(ALL) NOPASSWD: /usr/bin/ceph osd stat --format json
nagios ALL=(ALL) NOPASSWD: /usr/bin/ceph mon stat --format json
nagios ALL=(ALL) NOPASSWD: /usr/bin/ceph df --format json
nagios ALL=(ALL) NOPASSWD: /usr/bin/ceph pg stat --format json
{% endif %}