Files
nrpe/templates/nrpe.sudoers.j2
T
2026-04-24 21:33:12 +02:00

46 lines
2.4 KiB
Django/Jinja

nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_postfix_mailqueue -w {{ nrpe_mailq_warning }} -c {{ nrpe_mailq_critical }}
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
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_k8s_apiserver_access
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_k8s_deployments
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_k8s_jobs_cronjobs
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
{% 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 %}
{% 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
{% endif %}