You've already forked nrpe
feat - add ceph check
This commit is contained in:
@@ -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 %}
|
||||
@@ -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 %}
|
||||
Reference in New Issue
Block a user