summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: de1d790)
raw | patch | inline | side by side (parent: de1d790)
author | Florian Forster <octo@noris.net> | |
Wed, 15 Jul 2009 08:09:48 +0000 (10:09 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Wed, 15 Jul 2009 08:09:48 +0000 (10:09 +0200) |
If the `snmp' plugin isn't loaded (but a configuration exists), no
warning is printed because there are only blocks in the SNMP
configuration..
warning is printed because there are only blocks in the SNMP
configuration..
src/configfile.c | patch | blob | history |
diff --git a/src/configfile.c b/src/configfile.c
index 0bb46e4004d679a504c51a699408774b70f81b07..4ebd620084e6efbb14ea63800433493d1d9ba7ca 100644 (file)
--- a/src/configfile.c
+++ b/src/configfile.c
if (ci->children[i].children == NULL)
dispatch_value_plugin (name, ci->children + i);
else
- {DEBUG ("No nested config blocks allowed for this plugin.");}
+ {
+ WARNING ("There is a `%s' block within the "
+ "configuration for the %s plugin. "
+ "The plugin either only expects "
+ "\"simple\" configuration statements "
+ "or wasn't loaded using `LoadPlugin'."
+ " Please check your configuration.",
+ ci->children[i].key, name);
+ }
}
return (0);