Changeset b5ad4855435d6e2e69d38d240617192a02eaee76

Show
Ignore:
Timestamp:
03/19/09 21:21:41 (10 years ago)
Author:
Jason Dixon <jdixon@omniti.com>
git-committer:
Jason Dixon <jdixon@omniti.com> 1237497701 +0000
git-parent:

[560fa1680225558e8ca76ea2cb7b9b1415ffce57]

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

make this compatible with multi-drive systems

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

Files:

Legend:

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

    r4b16ee7 rb5ad485  
    1010  return $os if $os; 
    1111  my $unit = $arg->{'object'}; 
    12   my $drives_up = cache_command("echo 'st st' | /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 Device | /bin/grep -c 'is mounted'", 500); 
    1313  chomp $drives_up; 
    1414  if($drives_up > 0) {