ltb-project / nagios-plugins

Plugins for Nagios
GNU General Public License v3.0
8 stars 8 forks source link

lesser and greater mode are inverted #3

Closed coudot closed 5 years ago

coudot commented 5 years ago

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