added ldap checks
This commit is contained in:
parent
eb5003d6b2
commit
5fc3bf9909
|
@ -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' %}
|
||||
|
|
Loading…
Reference in New Issue