In check_ldap_query and check_ldap_monitor.pl, we can choose greater/lesser mode for the warning and critical threshold, but it seems the behavior is inverted:
clement@ader-worteks:~/dev/nagios-plugins$ perl check_ldap_query.pl -H localhost -b dc=example,dc=com -m lesser -w 10 -c 50
CRITICAL - 500 entries returned
clement@ader-worteks:~/dev/nagios-plugins$ perl check_ldap_monitor.pl -H localhost -T currentconnections -m lesser -w 5 -c 10
OK - 1 current connections returned
clement@ader-worteks:~/dev/nagios-plugins$ perl check_ldap_monitor.pl -H localhost -T currentconnections -m greater -w 50 -c 10
CRITICAL - 1 current connections returned
In check_ldap_query and check_ldap_monitor.pl, we can choose greater/lesser mode for the warning and critical threshold, but it seems the behavior is inverted: