Changeset 8f1f9847e4739d1ac6af4b5a2460a217ba6c8841

Show
Ignore:
Timestamp:
12/01/08 22:36:30 (10 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1228170990 +0000
git-parent:

[713792ed8c2f3330d91aaabc371c8fbd0fbe4ad6]

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

Fix for OpenBSD (it uses a slightly different output for uptime)

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

Files:

Legend:

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

    r713792e r8f1f984  
    1111    my $limit15 = $arg->{'15m'} || "5.00"; 
    1212    my $output = cache_command("uptime", 60); 
    13     if($output =~ /load average: ([0-9.]+), ([0-9.]+), ([0-9.]+)/) { 
     13    if($output =~ /load averages?: ([0-9.]+), ([0-9.]+), ([0-9.]+)/) { 
    1414        $status = "OK"; 
    1515        $sign1 = "<=";