added ldap checks

This commit is contained in:
muppeth 2023-11-22 00:45:37 +01:00
parent eb5003d6b2
commit 5fc3bf9909
Signed by: muppeth
GPG Key ID: 0EBC7B9848D04031
1 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,9 @@ UserParameter=postfix[*],/usr/local/bin/zabbix_scripts/postfix-zabbix-stats.bash
{% if item.name == 'ldap' %}
# LDAP parameters
UserParameter=ldap.user_count,cat /tmp/disroot_user_list
UserParameter=ldap.user_count,cat /tmp/ldap_stats | grep "active" | awk '{print $2}'
UserParameter=ldap.user_deleted,cat /tmp/ldap_stats | grep "deleted" | awk '{print $2}'
UserParameter=ldap.user_blocked,cat /tmp/ldap_stats | grep "blocked" | awk '{print $2}'
{% endif %}
{% if item.name == 'postgres' %}