Merge pull request 'Issue 679 - Added ldap checks parameters' (#7) from 679 into main

Reviewed-on: #7
This commit is contained in:
muppeth 2023-11-28 20:19:26 +00:00
commit 00a2a3935f
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' %}