pbs - put inventory_hostname by default

This commit is contained in:
Ludovic Cartier
2026-06-01 17:30:19 +02:00
parent fc66a7b8b2
commit 1ab1166c1e
3 changed files with 9 additions and 10 deletions
+2 -4
View File
@@ -163,9 +163,7 @@ 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_backups is defined %}
{% if nrpe_pbs_host 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_datastore }} -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 %}
command[check_pbs_backup]=/usr/lib/nagios/plugins/check_pbs_backup -H {{ nrpe_pbs_host }} -T {{ nrpe_pbs_token }} -s {{ nrpe_pbs_datastore }} -n {{ backup_id | default(inventory_hostname) }}{{ ' -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 '' }}
{% endif %}