[Nagiosplug-devel] patch for check_procs.t

Mathew Ericson mathew_ericson at agilent.com
Thu May 15 18:45:11 CEST 2003


Dear nagiosdevel,

Here is a patch for some typos in check_procs.t that were causing 
failures. How can I get these reviewed and checked-in:

--- check_procs.t.orig  2003-05-16 11:53:38.000000000 +1000
+++ check_procs.t       2003-05-16 11:58:15.000000000 +1000
@@ -20,11 +20,11 @@
  $t += ok $str, '/^OK - [0-9]+ processes running$/';

  # Reverse Compatibility
-$cmd = "./check_procs 100000 100000 Z";
+$cmd = "./check_procs 100000 100000 -s Z";
  $str = `$cmd`;
  $t += ok $?>>8,0;
  print "Test was: $cmd\n" if ($?);
-$t += ok $str, '/^OK - [0-9]+ processes running with /';
+$t += ok $str, '/^OK - [0-9]+ processes running with/';

  # Reverse Compatibility
  $cmd = "./check_procs 0 10000000";
@@ -41,11 +41,11 @@
  $t += ok $str, '/^CRITICAL - [0-9]+ processes running$/';

  # Reverse Compatibility
-$cmd = "./check_procs 0 0 S";
+$cmd = "./check_procs 0 0 -s S";
  $str = `$cmd`;
  $t += ok $?>>8,2;
  print "Test was: $cmd\n" unless ($?);
-$t += ok $str, '/^CRITICAL - [0-9]+ processes running with /';
+$t += ok $str, '/^CRITICAL - [0-9]+ processes running with/';

  exit(0) if defined($Test::Harness::VERSION);
  exit($tests - $t);

thanks
mathew
-- 
Mathew Ericson
CC/Unix System Administrator
Agilent Technologies, Inc.
613 9210 5956 Tel








More information about the Devel mailing list