Changeset d29cd189bac6bd07d3dab6845448b8adcf89c29d

Show
Ignore:
Timestamp:
04/20/10 20:37:03 (5 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1271795823 +0000
git-parent:

[fd93a8d96db416b0ae883a2f8849b9f151cda08a]

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

A couple of small fixes to the DiskFree? module

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Core/DiskFree.pm

    rec3ca85 rd29cd18  
    4141 
    4242The name of the check refers to the filesystem to check the free space on. It 
    43 should specify the mountpoint of the filesystem and not the device
     43can specify either the mountpoint or the device for the filesystem
    4444 
    4545=item dfcmd 
     
    9090    my $dfcmd = $config->{dfcmd} || $self->{default_dfcmd}; 
    9191 
    92     my $output = cache_command("$dfcmd $fs", 120); 
     92    my $output = run_command("$dfcmd $fs"); 
    9393    my ($line) = grep(/$fs\s*/, split(/\n/, $output)); 
    9494    if($line =~ /(\d+)\s+(\d+)\s+(\d+)%/) {