diff --git a/defaults/main.yml b/defaults/main.yml index dcb54b9..c2a22a1 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/templates/nrpe.j2 b/templates/nrpe.j2 index 632c60e..60437e3 100644 --- a/templates/nrpe.j2 +++ b/templates/nrpe.j2 @@ -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 %} \ No newline at end of file +{% endif %}