feat: Add SSL to nagios and NRPE

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2026-04-09 12:07:14 +02:00
commit 6efcdbf337
Signed by: jriou
GPG key ID: 9A099EDA51316854
4 changed files with 149 additions and 0 deletions

View file

@ -11,4 +11,19 @@ dont_blame_nrpe=0
allow_bash_command_substitution=0
command_timeout=60
connection_timeout=300
{% if nrpe_enable_ssl %}
ssl_client_certs=2
{% if nrpe_remote_ssl_ca_file is defined %}
ssl_cacert_file=/etc/nagios/ca.crt
{% endif %}
{% if nrpe_remote_ssl_cert_file is defined %}
ssl_cert_file=/etc/nagios/server.crt
{% endif %}
{% if nrpe_remote_ssl_key_file %}
ssl_privatekey_file=/etc/nagios/server.key
{% endif %}
ssl_logging=2
{% endif %}
include=/etc/nagios/nrpe_local.cfg