Changeset 3cfca66607e6f2a06868e5de051d304db5e73585

Show
Ignore:
Timestamp:
04/02/11 02:30:33 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1301711433 +0000
git-parent:

[e838538e0d11c824b411bbe659cf1a1de1966fa9]

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

avoid attempting to extract metrics from a nil document -- avoids a senseless error message

Files:

Legend:

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

    rd4b2cd9 r3cfca66  
    141141    check.available() 
    142142    local data = doc:document() 
    143     services = json_metric(check, nil, data) 
     143    if data ~= nil then 
     144      services = json_metric(check, nil, data) 
     145    end 
    144146    check.metric_uint32("services", services) 
    145147    if services > 0 then check.good() else check.bad() end