From 4b46d19d6b98f7f36dc82013a77c2e111c8e4cd6 Mon Sep 17 00:00:00 2001 From: astrugatch <22604593+astrugatch@users.noreply.github.com> Date: Mon, 11 Nov 2024 09:10:22 -0500 Subject: [PATCH 1/2] Update README.md Updated where ssl_cert_check.sh should be stored. --- zabbix_integration_examples/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zabbix_integration_examples/README.md b/zabbix_integration_examples/README.md index 92811e7..241efe8 100644 --- a/zabbix_integration_examples/README.md +++ b/zabbix_integration_examples/README.md @@ -1,5 +1,5 @@ * `template_ssl_basic.xml` - basic template and userparameters for monitoring of one SSL cert per host - * copy `userparameters_ssl_cert_check.conf file` into `/etc/zabbix/zabbix_agentd.d` on host + * copy `ssl_cert_check.sh` and `userparameters_ssl_cert_check.conf file` into `/etc/zabbix/zabbix_agentd.d` on host * import template in zabbix server, assign to host * fill macroses for that host: * `{$IPADDR}` @@ -12,4 +12,5 @@ * `template_ssl_advanced.xml` - advanced template and userparameters for monitoring of multiple ssl certs per host * copy `userparameters_ssl_cert_check.conf` and `userparameters_ssl_cert_discovery.conf` files into `/etc/zabbix/zabbix_agentd.d` * copy `ssl_cert_list.json` into `/etc/zabbix/zabbix_agentd.d` and modify to monitor your hosts. Parameter names are self-descriptive. + * copy `ssl_cert_check.sh` into `/etc/zabbix/zabbix_agentd.d` * import template in zabbix server, assign to host, wait for auto discovery From 3cfc4aba40f22f0c96713e5a932d83aef43d2b4a Mon Sep 17 00:00:00 2001 From: astrugatch <22604593+astrugatch@users.noreply.github.com> Date: Mon, 11 Nov 2024 09:11:25 -0500 Subject: [PATCH 2/2] Update userparameters_ssl_cert_check.conf Modified location for ssl_cert_check.sh to match updated README --- .../userparameters_ssl_cert_check.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zabbix_integration_examples/userparameters_ssl_cert_check.conf b/zabbix_integration_examples/userparameters_ssl_cert_check.conf index 641fcee..81e2ac5 100644 --- a/zabbix_integration_examples/userparameters_ssl_cert_check.conf +++ b/zabbix_integration_examples/userparameters_ssl_cert_check.conf @@ -1,5 +1,5 @@ # Parameters: # [port[/starttls protocol]] [domain for TLS SNI] [check timeout] [tls version] [tls_version,[self_signed_ok]] -UserParameter=ssl_cert_check_valid[*], /usr/local/bin/ssl_cert_check.sh valid "$1" "$2" "$3" "$4" "$5" -UserParameter=ssl_cert_check_expire[*], /usr/local/bin/ssl_cert_check.sh expire "$1" "$2" "$3" "$4" "$5" -UserParameter=ssl_cert_check_json[*], /usr/local/bin/ssl_cert_check.sh json "$1" "$2" "$3" "$4" "$5" +UserParameter=ssl_cert_check_valid[*], /etc/zabbix/zabbix_agentd.d/ssl_cert_check.sh valid "$1" "$2" "$3" "$4" "$5" +UserParameter=ssl_cert_check_expire[*], /etc/zabbix/zabbix_agentd.d/ssl_cert_check.sh expire "$1" "$2" "$3" "$4" "$5" +UserParameter=ssl_cert_check_json[*], /etc/zabbix/zabbix_agentd.d/ssl_cert_check.sh json "$1" "$2" "$3" "$4" "$5"