comparison mod_munin/mod_munin.lua @ 3130:c47cd8dbd310

mod_munin: Allow names containing any number of “:”.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 22 Jun 2018 00:28:59 +0200
parents 2ffc268ba2fa
children 7e5c8186f121
comparison
equal deleted inserted replaced
3129:2ffc268ba2fa 3130:c47cd8dbd310
87 if not ignore_stats:contains(stat) then 87 if not ignore_stats:contains(stat) then
88 this = all_stats[stat]; 88 this = all_stats[stat];
89 -- module:log("debug", "changed_stats[%q] = %s", stat, tostring(value)); 89 -- module:log("debug", "changed_stats[%q] = %s", stat, tostring(value));
90 host, sect, name, typ = stat:match("^/([^/]+)/([^/]+)/(.+):(%a+)$"); 90 host, sect, name, typ = stat:match("^/([^/]+)/([^/]+)/(.+):(%a+)$");
91 if host == nil then 91 if host == nil then
92 sect, name, typ, host = stat:match("^([^.]+)%.([^:]+):(%a+)$"); 92 sect, name, typ = stat:match("^([^.]+)%.(.+):(%a+)$");
93 elseif host == "*" then 93 elseif host == "*" then
94 host = nil; 94 host = nil;
95 end 95 end
96 if sect:find("^mod_measure_.") then 96 if sect:find("^mod_measure_.") then
97 sect = sect:sub(13); 97 sect = sect:sub(13);