Diff

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
parent 3129:2ffc268ba2fa
child 4553:7e5c8186f121
line wrap: on
line diff
--- a/mod_munin/mod_munin.lua	Thu Jun 21 22:38:56 2018 +0200
+++ b/mod_munin/mod_munin.lua	Fri Jun 22 00:28:59 2018 +0200
@@ -89,7 +89,7 @@
 			-- module:log("debug", "changed_stats[%q] = %s", stat, tostring(value));
 			host, sect, name, typ = stat:match("^/([^/]+)/([^/]+)/(.+):(%a+)$");
 			if host == nil then
-				sect, name, typ, host = stat:match("^([^.]+)%.([^:]+):(%a+)$");
+				sect, name, typ = stat:match("^([^.]+)%.(.+):(%a+)$");
 			elseif host == "*" then
 				host = nil;
 			end