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
+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 %}