[Ltb-changes] r67 - nagios-plugins/trunk

coudot at ltb-project.org coudot at ltb-project.org
Thu Apr 15 11:43:00 CEST 2010


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'};
+



More information about the ltb-changes mailing list