add check_pbs_backup

This commit is contained in:
Ludovic Cartier
2026-05-31 18:53:17 +02:00
parent 68b4fedeb9
commit b7a0575818
3 changed files with 181 additions and 0 deletions
+7
View File
@@ -162,3 +162,10 @@ 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 %}
{% if nrpe_pbs is defined %}
# pbs backups
{% for backup_id in nrpe_pbs.backups %}
command[check_pbs_backup_{{ backup_id }}]=/usr/lib/nagios/plugins/check_pbs_backup -H {{ nrpe_pbs.host }} -T {{ nrpe_pbs.token }} -s {{ nrpe_pbs.store }} -n {{ backup_id }}{{ ' -t ' + nrpe_pbs.type if nrpe_pbs.type is defined else '' }}{{ ' -P ' + nrpe_pbs.port|string if nrpe_pbs.port is defined else '' }}{{ ' -N ' + nrpe_pbs.namespace if nrpe_pbs.namespace is defined else '' }}{{ ' -k' if nrpe_pbs.ssl_insecure | default(false) else '' }}
{% endfor %}
{% endif %}