diff options
| author | Antoine Ouvrard <antoine.ouvrard@zextras.fr> | 2023-03-09 17:29:50 +0100 |
|---|---|---|
| committer | Antoine Ouvrard <antoine.ouvrard@zextras.fr> | 2023-03-09 17:29:50 +0100 |
| commit | 3fe3b6e90a664edc44aa4772d7d00e4f343f0467 (patch) | |
| tree | 14344de813b916b3bfd681b629a6f74ac83f2e98 /ansible-supervision/roles/set-config-telegraf/templates/zimbra_specific.conf.j2 | |
| parent | be5eb0822b5a248502c7562234d55e3d85660825 (diff) | |
readd directory
Diffstat (limited to 'ansible-supervision/roles/set-config-telegraf/templates/zimbra_specific.conf.j2')
| -rw-r--r-- | ansible-supervision/roles/set-config-telegraf/templates/zimbra_specific.conf.j2 | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ansible-supervision/roles/set-config-telegraf/templates/zimbra_specific.conf.j2 b/ansible-supervision/roles/set-config-telegraf/templates/zimbra_specific.conf.j2 new file mode 100644 index 0000000..c2fd225 --- /dev/null +++ b/ansible-supervision/roles/set-config-telegraf/templates/zimbra_specific.conf.j2 @@ -0,0 +1,47 @@ +# OpenLDAP cn=Monitor plugin +[[inputs.openldap]] + host = "{{ ansible_fqdn }}" + port = 389 + insecure_skip_verify = true + bind_dn = "uid=zimbra,cn=admins,cn=zimbra" + bind_password = "{{ zimbra_ldap_password }}" + reverse_metric_names = true + +## Postfix plugin +#[[inputs.postfix]] +# queue_directory = "/opt/zimbra/data/postfix/spool" +# interval = "1s" + +## Zimbra metric hourly +#[[inputs.exec]] +# commands = ["/etc/telegraf/scripts/zimbra_one_per_hour.sh"] +# data_format = "influx" +# interval = "1h" +# timeout = "15s" +# +## Zimbra metric daily +#[[inputs.exec]] +# commands = ["/etc/telegraf/scripts/zimbra_one_per_day.sh"] +# data_format = "influx" +# interval = "24h" +# timeout = "90s" + +[[inputs.exec]] + commands = ["/etc/telegraf/scripts/recup_info_zimbra -daily"] + interval = "24h" + timeout = "30s" + data_format = "json_v2" + [[inputs.exec.json_v2]] + measurement_name = "flux_zimbra" + [[inputs.exec.json_v2.object]] + path = "flux_zimbra" + +[[inputs.exec]] + commands = ["/etc/telegraf/scripts/recup_info_zimbra -hourly"] + interval = "1h" + timeout = "30s" + data_format = "json_v2" + [[inputs.exec.json_v2]] + measurement_name = "flux_zimbra" + [[inputs.exec.json_v2.object]] + path = "flux_zimbra" |
