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 #9332] Send custom attributes/groups/etc from satellite to master for node update-config #3044
Comments
Updated by mfriedrich on 2015-06-09 08:07:18 +00:00
|
Updated by mfriedrich on 2015-06-17 20:39:25 +00:00
|
Updated by mfriedrich on 2015-06-18 09:12:51 +00:00
|
Updated by mfriedrich on 2015-06-18 11:38:45 +00:00
|
Updated by mfriedrich on 2015-06-23 13:26:20 +00:00
|
Updated by mfriedrich on 2015-09-07 09:31:53 +00:00
|
Updated by mfriedrich on 2015-09-09 08:13:45 +00:00
|
Updated by mfriedrich on 2015-09-12 09:03:10 +00:00
I've looked into the code for a while now, and I am afraid this feature request involves quite a few incompatible changes:
I personally see this feature after 2.4 and a general design overhaul how to deal with clients and their local configuration and/or service discovery. Imho the API parts will be a better base than the repository is now. |
Updated by mfriedrich on 2015-09-12 09:05:46 +00:00
|
Updated by dawe on 2016-03-04 12:00:52 +00:00 It would be really nice to implement this, any plans to do that in the near future ? btw thanks for working hard on icinga,it's really a great work. it's very useful and essential solution. Thanks ! David |
Updated by mfriedrich on 2016-03-04 17:13:51 +00:00
|
Updated by mfriedrich on 2016-03-18 14:37:45 +00:00 No it is not planned to implement that in the near future as this will involve changes to how update-config works. |
Updated by mfriedrich on 2016-03-18 14:37:50 +00:00
|
Updated by mfriedrich on 2016-03-18 17:29:42 +00:00
|
Updated by bdhaeyer on 2016-05-31 15:57:39 +00:00 Hello Everyone, I found a way to overcome this by reconstructing the custom attributes using conditional tests in the "satellite template" on the master. On the template you can test the few data you get, to put back the custom attributes. If your hostnames / services have naming conventions, it's quite easy. It's a dirty way but it works for now. Any plan for this feature to be implemented? Despite working well, my script looks like having been abused :-) Thanks ! Benjamin EDIT : i looked into the code, and indeed this "trick" works because of line 294 and 295 in "nodeupdateconfigcommand.cpp" (https://github.com/Icinga/icinga2/blob/master/lib/cli/nodeupdateconfigcommand.cpp#L294), It automatically set the default satellite template. And this is this specific template i modified with the nasty conditions around the host / services names. After reading a bit of its content, i came to the same conclusion as post #8, it will need more than few lines to fix this : needs to search the attributes, eventually pass also the templates from satellite to master, check if the template isn't already existing, check if the attributes aren't garbage... Doesn't look like an easy implementation. On another side, you're totally right, the handler need to dump more attributes, which needs a partial rewrite too. If i had more time, i could try to contribute, but unfortunately my schedule is completly full. Thanks again for your analysis and the good job! Can't wait for someone to have a look at it :-) |
Updated by gbeutner on 2016-08-27 19:41:05 +00:00
|
Updated by GreenRover on 2016-08-29 04:23:00 +00:00 dnsmichi: I personally see this feature after 2.4 Ok actually we are on 2.4 do you have any time line when this feature could be implemented? |
Updated by mfriedrich on 2016-11-18 17:10:45 +00:00
|
Updated by mfriedrich on 2016-11-23 14:57:03 +00:00
|
Updated by mfriedrich on 2017-01-14 13:07:49 +00:00
|
Updated by mfriedrich on 2017-01-14 13:07:53 +00:00
|
Updated by mfriedrich on 2017-01-14 13:07:56 +00:00
|
Updated by mfriedrich on 2017-01-14 13:07:59 +00:00
|
Updated by mfriedrich on 2017-01-14 13:08:03 +00:00
|
Updated by mfriedrich on 2017-01-14 13:08:06 +00:00
|
Updated by mfriedrich on 2017-01-14 13:08:09 +00:00
|
Updated by mfriedrich on 2017-01-14 13:08:12 +00:00
|
Updated by mfriedrich on 2017-01-14 13:08:15 +00:00
|
Updated by mfriedrich on 2017-01-14 13:08:23 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/9332
Created by adegtyarev on 2015-05-28 14:12:36 +00:00
Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2017-01-14 13:08:23 +00:00 (in Redmine)
Variables that set on satellite side are not passed to master:
satellite:
master:
This eventually leads to some lacks:
No satellite host will appear in this group regardless
host.vars.os
is set on satellite or not. This could probably workarrounded with satellite's hosts definition directly on master, but it this case the idea of satellites looks not so much attractive..As long as
host.vars.*
unset on master, no notification will be applied to satellite's services. To make this notifications work, notifications on satellites required to be enabled, which is not always possible.Would be a nice feature if variables from satellites gets transferred to master as well.
Parent Task: #13257
The text was updated successfully, but these errors were encountered: