New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dev.icinga.com #10830] Config validation doesn't fail when templates are used as object names #3775
Comments
Updated by mfriedrich on 2015-12-13 09:25:57 +00:00
Please run icinga with gdb and attach a full backtrace (details in the docs). Seems a check for IsAbstract is missing somewhere. |
Updated by bldewolf on 2015-12-14 18:44:29 +00:00 Woops, I got a backtrace but forgot to include it. It doesn't actually point to where the real error is because the daemon crashes when it first tries to find/use the nonexistent CheckCommand.
currentContextFrame = {}
at /build/icinga2-2.4.1/lib/checker/checkercomponent.cpp:200
No locals.
wi = {Callback = {<boost::function0> = {boost::function_base = {vtable = 0x2b4afb95efb0, functor = {obj_ptr = 0x183d6f0, type = {
No symbol table info available.
No symbol table info available.
No symbol table info available.
No symbol table info available. |
Updated by mfriedrich on 2015-12-17 10:02:16 +00:00
|
Updated by mfriedrich on 2015-12-17 10:03:01 +00:00
|
Updated by mfriedrich on 2015-12-17 10:11:00 +00:00
|
Updated by mfriedrich on 2015-12-17 12:46:26 +00:00
Happens with any object name attribute.
|
Updated by mfriedrich on 2015-12-17 12:50:03 +00:00
Applied in changeset 323b759. |
Updated by gbeutner on 2016-02-23 09:58:31 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/10830
Created by bldewolf on 2015-12-13 00:07:18 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2015-12-17 12:50:03 +00:00)
Target Version: 2.4.2
Last Update: 2016-02-23 09:58:31 +00:00 (in Redmine)
I tried to add a new check today without thinking very hard about what I was typing and caused Icinga2 to segfault. I made a new CheckCommand but marked it as a template instead of an object. The config parser should probably catch that the check_command is not valid.
Here is an example:
Attachments
Changesets
2015-12-17 12:49:30 +00:00 by mfriedrich 323b759
2016-02-23 08:16:22 +00:00 by mfriedrich 925161d
The text was updated successfully, but these errors were encountered: