zabbix_export: version: '5.4' date: '2021-11-21T21:37:55Z' groups: - uuid: 957073c9b349479586cd341ce5ed785c name: 'Template LDAP' templates: - uuid: 957073c9b349479586cd341ce5ed785c template: LDAP name: LDAP description: | ## Overview Monitoring OpenLDAP Cluster with Zabbix 3.4. It's a script that checks LDAP Provider - Consumer status, and sync status between them. You should: 1. Put **ldap\_check\_status.sh** in LDAP **Consumer** and make it executable for zabbix user. 2. Put **openldap\_cluster\_status.conf** in /etc/zabbix/zabbix\_agentd.conf.d directory in **LDAP Consumer**. 3. Import **zabbix\_openldap\_template.xml**. 4. Import **zabbix\_openldap\_value\_mapping.xml**. 5. Modify the item parameter and replace with LDAP Provider FQDN or IP. **[https://github.com/MrCirca/OpenLDAP-Cluster-Zabbix](https://github.com/MrCirca/OpenLDAP-Cluster-Zabbix "Download Project")** groups: - name: 'Template LDAP' items: - uuid: 682b7df85c0549beaad899f72d8ba2a0 name: 'LDAP Cluster status' key: 'ldap.clusterstatus[172.17.172.51]' delay: 30s valuemap: name: 'LDAP cluster Value Mapping' triggers: - uuid: b66d9a9499304bfaa72a61cbdd99506a expression: 'last(/LDAP/ldap.clusterstatus[172.17.172.51])=1' name: 'LDAP Consumer Down' priority: WARNING - uuid: 0789e0d08fae451e964787c3a1c41309 expression: 'last(/LDAP/ldap.clusterstatus[172.17.172.51])=3' name: 'LDAP Provider & Consumer Down' priority: WARNING - uuid: 8889e5c7383746aebf05ffe85de3fd32 expression: 'last(/LDAP/ldap.clusterstatus[172.17.172.51])=2' name: 'LDAP Provider Down' priority: WARNING macros: - macro: '{$BASE_DN}' value: '"dc=modulus,dc=gr"' - macro: '{$LDAP_HOST}' value: 172.17.172.51 valuemaps: - uuid: 3535288fc693458c8f7562aada66dd20 name: 'LDAP cluster Value Mapping' mappings: - value: '1' newvalue: 'LDAP Consumer Down' - value: '2' newvalue: 'LDAP Provider Down' - value: '3' newvalue: 'LDAP Provider & Consumer Down' - value: '4' newvalue: 'LDAP cluster Synced'