deploy zabbix files to monitor certificates

This commit is contained in:
2020-05-22 16:27:52 +02:00
parent 5626400740
commit 3b50190e7b
5 changed files with 27 additions and 2 deletions

View File

@@ -52,4 +52,9 @@
- name: goaccess
import_tasks: goaccess.yml
when: apache_stats
tags: stats
tags: stats
- name: zabbix setup
import_tasks: zabbix.yml
when: apache_use_zabbix and apache_use_ssl
tags: zabbix, ssl

13
tasks/zabbix.yml Normal file
View File

@@ -0,0 +1,13 @@
---
- name: deploy zabbix lld script
copy:
src: lld_certlist.py
dest: /etc/zabbix/scripts
group: zabbix
mode: 0750
- name: deploy zabbix userparameter
copy:
dest: /etc/zabbix/zabbix_agentd.d/user_parameter_certificate_discovery.conf
content: "UserParameter=certificate.discovery,/etc/zabbix/scripts/lld_certlist.py"
notify: restart zabbix_agentd