Changeset f3a80d52b14c61ed1caf268e2a22ea6a9b90a2e4

Show
Ignore:
Timestamp:
03/21/09 00:22:07 (5 years ago)
Author:
Jason Dixon <jdixon@omniti.com>
git-committer:
Jason Dixon <jdixon@omniti.com> 1237594927 +0000
git-parent:

[b5ad4855435d6e2e69d38d240617192a02eaee76]

git-author:
Jason Dixon <jdixon@omniti.com> 1237594927 +0000
Message:

make sure we only grep the device we're looking for

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

Files:

Legend:

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

    rb5ad485 rf3a80d5  
    1010  return $os if $os; 
    1111  my $unit = $arg->{'object'}; 
    12   my $drives_up = cache_command("echo 'status storage=$unit' | /opt/bacula/sbin/bconsole | /bin/grep Device | /bin/grep -c 'is mounted'", 500); 
     12  my $drives_up = cache_command("echo 'status storage=$unit' | /opt/bacula/sbin/bconsole | /bin/grep $unit | /bin/grep Device | /bin/grep -c 'is mounted'", 500); 
    1313  chomp $drives_up; 
    1414  if($drives_up > 0) {