Changeset ed0c3d1f426dd8869c5eeb07c0dbbba787363d34

Show
Ignore:
Timestamp:
06/24/08 21:10:19 (6 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1214341819 +0000
git-parent:

[176b711c6482300cd058779658f6dcf1caa898d7]

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

Making the df command specify the device it is looking for so it doesn't hang
on some other directory/device we aren't concerned with.

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

Files:

Legend:

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

    rcab0e0f red0c3d1  
    1111  return $os if $os; 
    1212  my $devorpart = $arg->{'object'}; 
    13   my $output = cache_command("$dfcmd", 120); 
     13  my $output = cache_command("$dfcmd $devorpart", 120); 
    1414  my ($line) = grep(/$devorpart\s*/, split(/\n/, $output)); 
    1515  if($line =~ /(\d+)%/) {