You've already forked nrpe
pbs - put inventory_hostname by default
This commit is contained in:
+2
-4
@@ -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 %}
|
||||
Reference in New Issue
Block a user