update default var & templates for the previous checks

This commit is contained in:
Ludovic Cartier
2026-03-16 15:49:45 +01:00
parent 94aba075e4
commit 6118620472
3 changed files with 58 additions and 2 deletions
+24
View File
@@ -122,4 +122,28 @@ command[check_redis_health_frag]=/usr/bin/sudo /usr/lib/nagios/plugins/check_red
{% if nrpe_redis_replication_lag_warning is defined or nrpe_redis_replication_lag_critical is defined %}
command[check_redis_health_replication]=/usr/bin/sudo /usr/lib/nagios/plugins/check_redis_health -x replication -w {{ nrpe_redis_replication_lag_warning }} -c {{ nrpe_redis_replication_lag_critical }}
{% endif %}
{% endif %}
{% if nrpe_pve_quorum is defined %}
# proxmox
command[check_pve_quorum]=/usr/bin/sudo /usr/lib/nagios/plugins/check_pve_quorum
{% if nrpe_pvesr is defined %}
command[check_pvesr]=/usr/bin/sudo /usr/lib/nagios/plugins/check_pvesr
{% endif %}
{% endif %}
{% if nrpe_nvme_device is defined %}
# nvme smart
command[check_nvme_smart]=/usr/bin/sudo /usr/lib/nagios/plugins/check_nvme_smart -d {{ nrpe_nvme_device }} -w {{ nrpe_nvme_smart_warning }} -c {{ nrpe_nvme_smart_critical }}
command[check_nvme_temperature]=/usr/bin/sudo /usr/lib/nagios/plugins/check_nvme_temperature -d {{ nrpe_nvme_device }} -w {{ nrpe_nvme_temperature_warning }} -c {{ nrpe_nvme_temperature_critical }}
{% endif %}
{% if nrpe_zpool_name is defined %}
# zpool
command[check_zpool]=/usr/bin/sudo /usr/lib/nagios/plugins/check_zpool_health {{ nrpe_zpool_name }}
{% endif %}
{% if nrpe_uptime is defined %}
# uptime
command[check_uptime]=/usr/lib/nagios/plugins/check_uptime -w {{ nrpe_uptime_warning }} -c {{ nrpe_uptime_critical }}
{% endif %}
+24 -1
View File
@@ -2,6 +2,8 @@ nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_postfix_mailqueue -w {{
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_exim_mailqueue -w {{ nrpe_mailq_warning }} -c {{ nrpe_mailq_critical }}
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_raid
nagios ALL=(ALL) NOPASSWD: /usr/sbin/needrestart -b -l
{% if nrpe_kubernetes_controlplane is defined %}
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_cilium_health
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_coredns_health
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_etcd_health
@@ -12,4 +14,25 @@ nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_k8s_pki_certs
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_k8s_pv_pvc
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_k8s_replicasets
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_k8s_pod_restarts
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_redis_health
{% endif %}
{% if nrpe_redis_memory_warning is defined or nrpe_redis_memory_critical is defined or nrpe_redis_persistence is defined %}
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_redis_health
{% endif %}
{% if nrpe_zpool_name is defined %}
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_zpool_health {{ nrpe_zpool_name }}
{% endif %}
{% if nrpe_pve_quorum is defined %}
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_pve_quorum
{% endif %}
{% if nrpe_pvesr is defined %}
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_pvesr
{% endif %}
{% 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 %}