Changeset

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 3129:2ffc268ba2fa
children 3131:ddd39ca7b953
files mod_munin/mod_munin.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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