[Resmon-devel] [resmon commit] r162 - trunk/lib/Resmon/Module
svn-commit at lists.omniti.com
svn-commit at lists.omniti.com
Thu Mar 19 17:21:41 EDT 2009
Author: jdixon
Date: 2009-03-19 17:21:41 -0400 (Thu, 19 Mar 2009)
New Revision: 162
Modified:
trunk/lib/Resmon/Module/BACULATAPE.pm
Log:
make this compatible with multi-drive systems
Modified: trunk/lib/Resmon/Module/BACULATAPE.pm
===================================================================
--- trunk/lib/Resmon/Module/BACULATAPE.pm 2009-03-19 20:55:33 UTC (rev 161)
+++ trunk/lib/Resmon/Module/BACULATAPE.pm 2009-03-19 21:21:41 UTC (rev 162)
@@ -9,7 +9,7 @@
my $os = $arg->fresh_status();
return $os if $os;
my $unit = $arg->{'object'};
- my $drives_up = cache_command("echo 'st st' | /opt/bacula/sbin/bconsole | /bin/grep Device | /bin/grep -c 'is mounted'", 500);
+ my $drives_up = cache_command("echo 'status storage=$unit' | /opt/bacula/sbin/bconsole | /bin/grep Device | /bin/grep -c 'is mounted'", 500);
chomp $drives_up;
if($drives_up > 0) {
return $arg->set_status("OK($drives_up UP)\n");
More information about the Resmon-devel
mailing list