[Resmon-devel] [resmon commit] r212 - trunk/lib/Resmon/Module
svn-commit at lists.omniti.com
svn-commit at lists.omniti.com
Wed Sep 9 12:45:24 EDT 2009
Author: mark
Date: 2009-09-09 12:45:24 -0400 (Wed, 09 Sep 2009)
New Revision: 212
Modified:
trunk/lib/Resmon/Module/PGREP.pm
Log:
Fix for pgrep check false positives
Modified: trunk/lib/Resmon/Module/PGREP.pm
===================================================================
--- trunk/lib/Resmon/Module/PGREP.pm 2009-09-04 14:23:22 UTC (rev 211)
+++ trunk/lib/Resmon/Module/PGREP.pm 2009-09-09 16:45:24 UTC (rev 212)
@@ -9,7 +9,8 @@
my $args = join(' ',$arg->{'arg0'},$arg->{'arg1'},$arg->{'arg2'});
$args =~s/\s+$//;
$proc .= " $args" if $args;
- my $output = cache_command("pgrep -f -l '$proc' | head -1", 180);
+ my $output = cache_command("pgrep -f -l '$proc' | grep -v pgrep | head -1",
+ 180);
if($output) {
chomp $output;
return("OK(pid:$output)");
More information about the Resmon-devel
mailing list