ssl - add default var & declaration

This commit is contained in:
Ludovic Cartier
2026-04-30 16:29:32 +02:00
parent 59893530e6
commit 258ad37cc2
2 changed files with 10 additions and 1 deletions
+4
View File
@@ -59,3 +59,7 @@ nrpe_proc_age_critical: 600
nrpe_uptime_warning: 1440
nrpe_uptime_critical: 30
nrpe_ssl_path: '/etc/haproxy/ssl'
nrpe_ssl_warning: 21
nrpe_ssl_critical: 14
+6 -1
View File
@@ -35,6 +35,11 @@ command[check_rw_root]=/usr/lib/nagios/plugins/check_rofs /
# uptime
command[check_uptime]=/usr/lib/nagios/plugins/check_uptime -w {{ nrpe_uptime_warning }} -c {{ nrpe_uptime_critical }}
{% if nrpe_ssl is defined %}
# ssl
command[check_ssl_cert]=/usr/lib/nagios/plugins/check_ssl_cert -p {{ nrpe_ssl_path }} -w {{ nrpe_ssl_warning }} -c {{ nrpe_ssl_critical }}
{% endif %}
{% if nrpe_mysql is defined %}
# mysql
command[check_mysql]=/usr/lib/nagios/plugins/check_mysql -u {{ nrpe_mysql_user }} -p{{ nrpe_mysql_password }} -H {{ nrpe_mysql_host }} -d mysql
@@ -153,4 +158,4 @@ command[check_ceph_osd]=/usr/lib/nagios/plugins/check_ceph osd
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 %}
{% endif %}