Changeset 84f66161d9898a3b49ef755faa5a6ff509f7a5e6

Show
Ignore:
Timestamp:
09/09/09 16:45:24 (5 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1252514724 +0000
git-parent:

[65336e0fe19c6ca674b0457ed254927d507e4fca]

git-author:
Mark Harrison <mark@omniti.com> 1252514724 +0000
Message:

Fix for pgrep check false positives

git-svn-id: https://labs.omniti.com/resmon/trunk@212 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Resmon/Module/PGREP.pm

    r19be283 r84f6616  
    1010  $args =~s/\s+$//; 
    1111  $proc .= " $args" if $args; 
    12   my $output = cache_command("pgrep -f -l '$proc' | head -1", 180); 
     12  my $output = cache_command("pgrep -f -l '$proc' | grep -v pgrep | head -1", 
     13    180); 
    1314  if($output) { 
    1415    chomp $output;