On 12.02.2014 17:27, Carlos Cesario wrote:
Hello, after update to last dev version, my checker nodes is getting
error when try start!

Your cluster node is distributing the macros.conf while it is also included on the accepting node. Therefore overriding a global constant setting is invalid, as remarked in https://dev.icinga.org/issues/5648




ba6a39524913e5c7ec12d4625d2c/861ade05c808a37ad3bed7ec4dc8e948716659562bfb844c1d242c97071c7e80
[2014-02-12 14:22:01 -0200] <Main Thread> critical/config: Config error:
../../../lib/base/scriptvariable.cpp(75): Throw in function static
icinga::ScriptVariable::Ptr icinga::ScriptVariable::Set(const
icinga::String&, const icinga::Value&, bool, bool)
Dynamic exception type:
boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::invalid_argument>
std::exception::what: Tried to modify read-only script variable
'IcingaMacros'
[icinga::StackTrace*] =
     (0) /usr/lib/x86_64-linux-gnu/icinga2/libbase.so: void
boost::throw_exception<boost::exception_detail::error_info_injector<std::invalid_argument>
(boost::exception_detail::error_info_injector<std::invalid_argument>
const&) (+0x76) [0x7f8f9fac9df6]
     (1) /usr/lib/x86_64-linux-gnu/icinga2/libbase.so:
icinga::ScriptVariable::Set(icinga::String const&, icinga::Value const&,
bool, bool) (+0x1da) [0x7f8f9fb01c1a]
     (2) /usr/lib/x86_64-linux-gnu/icinga2/libconfig.so:
yyparse(icinga::ConfigCompiler*) (+0x2f9) [0x7f8f9f809e49]
     (3) /usr/lib/x86_64-linux-gnu/icinga2/libconfig.so:
icinga::ConfigCompiler::Compile() (+0x9) [0x7f8f9f80d6d9]
     (4) /usr/lib/x86_64-linux-gnu/icinga2/libconfig.so:
icinga::ConfigCompiler::CompileStream(icinga::String const&,
std::istream*) (+0x99) [0x7f8f9f7f4239]
     (5) /usr/lib/x86_64-linux-gnu/icinga2/libconfig.so:
icinga::ConfigCompiler::CompileFile(icinga::String const&) (+0x215)
[0x7f8f9f7f4ca5]
     (6) /usr/lib/x86_64-linux-gnu/icinga2/libbase.so:
icinga::Utility::Glob(icinga::String const&, boost::function<void
(icinga::String const&)> const&, int) (+0xe8) [0x7f8f9fb2beb8]
     (7) /usr/lib/x86_64-linux-gnu/icinga2/libconfig.so:
icinga::ConfigCompiler::HandleInclude(icinga::String const&, bool,
icinga::DebugInfo const&) (+0x1e3) [0x7f8f9f7f51b3]
     (8) /usr/lib/x86_64-linux-gnu/icinga2/libconfig.so:
yyparse(icinga::ConfigCompiler*) (+0xd0f) [0x7f8f9f80a85f]
     (9) /usr/lib/x86_64-linux-gnu/icinga2/libconfig.so:
icinga::ConfigCompiler::Compile() (+0x9) [0x7f8f9f80d6d9]
     (10) /usr/lib/x86_64-linux-gnu/icinga2/libconfig.so:
icinga::ConfigCompiler::CompileStream(icinga::String const&,
std::istream*) (+0x99) [0x7f8f9f7f4239]
     (11) /usr/lib/x86_64-linux-gnu/icinga2/libconfig.so:
icinga::ConfigCompiler::CompileFile(icinga::String const&) (+0x215)
[0x7f8f9f7f4ca5]
     (12) icinga2: main (+0xf90) [0x41c4d0]
     (13) /lib/x86_64-linux-gnu/libc.so.6: __libc_start_main (+0xed)
[0x7f8f9ef0876d]
     (14) icinga2() [0x41da1d]


[icinga::ContextTrace*] =
     (0) Compiling configuration stream with name
'/var/lib/icinga2/cluster/config/ccb1a1014c9c78985c033bae921196d63e2dba6a39524913e5c7ec12d4625d2c/7c114b2a8e853d037fd4aaccee647b849359a5d4948e73e15fde97a8f166b837'
     (1) Compiling configuration file
'/var/lib/icinga2/cluster/config/ccb1a1014c9c78985c033bae921196d63e2dba6a39524913e5c7ec12d4625d2c/7c114b2a8e853d037fd4aaccee647b849359a5d4948e73e15fde97a8f166b837'
     (2) Compiling configuration stream with name '/etc/icinga2/icinga2.conf'
     (3) Compiling configuration file '/etc/icinga2/icinga2.conf'
     (4) Loading configuration files


Context:
     (0) Loading configuration files

[2014-02-12 14:22:01 -0200] <Main Thread> critical/config: 1 errors, 0
warnings.
Context:
     (0) Loading configuration files



The
/var/lib/icinga2/cluster/config/ccb1a1014c9c78985c033bae921196d63e2dba6a39524913e5c7ec12d4625d2c/7c114b2a8e853d037fd4aaccee647b849359a5d4948e73e15fde97a8f166b837
content file is


/**
  * Global macros
  */
var IcingaMacros = {
   plugindir = "/usr/lib/nagios/plugins"
}


Icinga2 versions

ii  icinga2                          0.0.7+icingasnap201402121511.2be
host and network monitoring system
ii  icinga2-bin                      0.0.7+icingasnap201402121511.2be
host and network monitoring system - daemon
ii  icinga2-common                   0.0.7+icingasnap201402121511.2be
host and network monitoring system - common files
ii  icinga2-dbg                      0.0.7+icingasnap201402121511.2be
host and network monitoring system - debug symbols
ii  icinga2-doc                      0.0.7+icingasnap201402121511.2be
host and network monitoring system - documentation
ii  icinga2-ido-mysql                0.0.7+icingasnap201402121511.2be
host and network monitoring system - IDO for MySQL


greats

Carlos

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users


--
DI (FH) Michael Friedrich

michael.friedr...@gmail.com  || icinga open source monitoring
https://twitter.com/dnsmichi || lead core developer
dnsmi...@jabber.ccc.de       || https://www.icinga.org/team
irc.freenode.net/icinga      || dnsmichi

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to