Changeset d4b2cd9cd6b21755d65fd9b41c4ad21e711d0de5

Show
Ignore:
Timestamp:
03/26/11 21:52:28 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1301176348 +0000
git-parent:

[95b66901b3f49ed5ae2b6563f0a84290f949c220]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1301176348 +0000
Message:

Arg! Poo-poo loosely typed languages! refactor failure. This fixes xml resmon checks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules-lua/noit/module/resmon.lua

    rf510b1e rd4b2cd9  
    168168            check.metric_string(prefix .. "state", obj and obj:contents()) 
    169169        end 
    170        local metrics = 0 
     170        local metrics = 0 
    171171        for metric in doc:xpath("metric", result) do 
    172172            metrics = metrics + 1 
    173173            local name = metric:attr("name") or "DUMMY" 
    174174            local type = metric:attr("type") or "DUMMY" 
    175             set_check_metric(prefix .. name, type, metric and metric:contents()) 
     175            set_check_metric(check, prefix .. name, type, metric and metric:contents()) 
    176176        end 
    177177        if metrics == 0 then