Author: coudot
Date: 2010-04-15 11:43:00 +0200 (Thu, 15 Apr 2010)
New Revision: 67
Modified:
nagios-plugins/trunk/check_ldap_query.pl
Log:
#194: apply patch from Romain Vrignaud
Modified: nagios-plugins/trunk/check_ldap_query.pl
===================================================================
--- nagios-plugins/trunk/check_ldap_query.pl 2010-04-14 14:23:48 UTC (rev 66)
+++ nagios-plugins/trunk/check_ldap_query.pl 2010-04-15 09:43:00 UTC (rev 67)
@@ -419,19 +419,17 @@
# Test the $nb_entries and exit
if ( $nb_entries < $warning ) {
- print
- "OK - $nb_entries entries returned (W:$warning - C:$critical)$perfparse";
+ print "OK - $nb_entries entries returned $perfparse\n";
exit $ERRORS{'OK'};
}
-elsif ( $nb_entries > $warning and $nb_entries < $critical ) {
- print
-"WARNING - $nb_entries entries returned (W:$warning - C:$critical)$perfparse";
+elsif ( $nb_entries >= $warning and $nb_entries < $critical ) {
+ print "WARNING - $nb_entries entries returned $perfparse\n";
exit $ERRORS{'WARNING'};
}
else {
- print
-"CRITICAL - $nb_entries entries returned (W:$warning - C:$critical)$perfparse";
+ print "CRITICAL - $nb_entries entries returned $perfparse\n";
exit $ERRORS{'CRITICAL'};
}
exit $ERRORS{'UNKNOWN'};
+
_______________________________________________
ltb-changes mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-changes