Changeset 5302c67ee5d7aaded4400cc52e62852ce57e8f9e

Show
Ignore:
Timestamp:
03/12/10 02:26:12 (4 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1268360772 +0000
git-parent:

[91bf0e8140611e9a58ff76bb263fc9a7a5854e19]

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

Metrics for the load check

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

Files:

Legend:

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

    r8f1f984 r5302c67  
    2828            $sign1 = ">"; 
    2929        } 
    30         return $status, "1m: $1 $sign1 $limit1, 5m: $2 $sign5 $limit5, " . 
    31             "15m: $3 $sign15 $limit15"; 
     30        return $status, { 
     31            "message" => "1m: $1 $sign1 $limit1, 5m: $2 $sign5 $limit5, " . 
     32                        "15m: $3 $sign15 $limit15", 
     33            "1m"  => $1, 
     34            "5m"  => $2, 
     35            "15m" => $3 
     36        } 
    3237    } 
    33     return "BAD", "Unable to determine load average"; 
     38    return "BAD", { 
     39        "message" => "Unable to determine load average" 
     40    } 
    3441}; 
    35421;