Thomas Gelf
7dd2ac6b83
IcingaService: enum service vars, not host vars
...
fixes #13359
2016-11-30 09:33:29 +01:00
Markus Frosch
4e5dfb097e
IcingaService(Legacy): Fix duplicated rendering of apply
...
refs #13049
2016-11-15 10:52:03 +01:00
Markus Frosch
d4c3be0bf5
IcingaHostGroup|IcingaService(Set): Fix legacy config file extension
...
refs #13049
2016-11-14 15:28:52 +01:00
Thomas Gelf
913d934762
IcingaObject: introduce getSingleResolvedProperty()
...
Motivation: getResolvedProperty() has the effect that objects will fully
resolve all inherited properties, vars and fields. This is overkill in
situations where only a few resolves properties are needed and has quite
an influence on overall rendering performance.
Over time we might completely fade out that part of our resolving logic
as it predates current cache implementations. Meanwhile, we keep two
methods for two (internal) purposes.
2016-11-14 13:25:26 +01:00
Markus Frosch
31520a7d21
IcingaService: Don't even try to render service_set related services
...
refs #12891
2016-11-11 11:49:37 +01:00
Markus Frosch
e116e36051
IcingaService(legacy): Test for not null
...
refs #13049
2016-11-07 14:12:30 +01:00
Thomas Gelf
068d38fddc
IcingaService(v1): render single service apply...
...
...fully resolved to all matching hosts respecting their rendering zone
2016-11-07 13:34:20 +01:00
Thomas Gelf
2c1f745c4e
IcingaService: render service_description for v1
2016-11-07 11:38:02 +01:00
Thomas Gelf
482f48ee1e
IcingaServiceSet: cleanup, shift responsability...
...
...for service_set_id property cleanup
refs #13049
2016-11-04 20:31:01 +01:00
Thomas Gelf
ba7d350a8c
HostApplyMatches: resolve services and -sets...
...
...for Icinga v1.x
refs #13049
2016-11-04 19:56:56 +01:00
Thomas Gelf
a656ca4067
IcingaService: correctly prefix host properties
...
fixes #13040
2016-11-03 20:02:51 +01:00
Thomas Gelf
ef9ef52124
IcingaService: provide assignment properties
...
fixes #12731
fixes #13038
fixes #12073
2016-11-03 16:35:27 +01:00
Markus Frosch
1502dd9c90
IcingaObject(Legacy): Render display_name as alias
...
With the execption of Host and Service.
refs #12919
2016-11-03 13:41:44 +01:00
Markus Frosch
31a321e13e
IcingaObject(legacy): Add flag to render only supported objects
...
refs #12919
2016-11-03 13:41:44 +01:00
Thomas Gelf
22802114ac
IcingaService: do not disable services twice
...
fixes #13017
2016-10-31 12:36:45 +00:00
Thomas Gelf
78903553e9
IcingaService: disable services belonging to a...
...
...single disabled host
fixes #12049
2016-10-29 22:06:52 +00:00
Thomas Gelf
d59604bd93
ServiceSet: rework sets, allow for vars and...
...
...all other service properties when adding services to a set
2016-10-25 23:12:23 +00:00
Thomas Gelf
0d86c24cd8
Huge change, getting rid of legacy assignment...
...
...code. All objects should work with the new code base right now
2016-10-24 03:41:37 +00:00
Thomas Gelf
88a741a8d0
IcingaService: introduce assign_filter property
2016-10-22 07:02:09 +00:00
Thomas Gelf
9ba6116091
IcingaService: support and test speciall object...
...
...name variants with apply for
2016-10-22 06:54:53 +00:00
Thomas Gelf
1f660b514a
IcingaServiceForm: allow empty name for apply rule
2016-10-22 06:09:10 +00:00
Corentin Ardeois
3e30d34098
Use `config` variable in apply for rules
...
* use `config` instead of `value` in apply for rules
* update documentation
refs #11976
2016-10-22 06:07:57 +00:00
Corentin Ardeois
e7bd4343b5
Add support for Apply for rules in services
...
Apply for rules are defined through `apply_for` property
Only Array custom variables will be eligible in apply_for dropdown.
API Example:
```bash
./director-curl POST director/service?name=my_service '{"apply_for": "for (checked_tcp_port in host.vars.checked_tcp_ports)" }'
```
Will render as:
```
apply Service "my_service" for (checked_tcp_port in host.vars.checked_tcp_ports) {
...
}
```
Feature: https://dev.icinga.org/issues/11976
Depends-On: https://github.com/Icinga/icingaweb2-module-director/pull/20
refs #11976
2016-10-22 06:00:54 +00:00
Thomas Gelf
f2f04c44e8
ServiceSet: add CLI command, fix key
2016-10-12 07:31:00 +00:00
Markus Frosch
df36071c9c
IcingaService: single objects should respect...
...
...their host's zone where not overriden by a service template
fixes #11988
2016-10-10 10:57:24 +00:00
Thomas Gelf
2c7c54a15d
IcingaConfig: improve override constant usage
2016-09-08 20:24:54 +00:00
Thomas Gelf
b2b189c425
IcingaServiceForm: support use_var_overrides...
...
...even for single host-assigned services
2016-09-08 18:43:25 +00:00
Thomas Gelf
b47c7be3d5
IcingaService: add use_var_overrides
2016-09-08 15:01:19 +00:00
Thomas Gelf
999019ba16
IcingaService: make sure to have a db connection
...
...when rendering, as we require settings
2016-09-08 13:30:37 +00:00
Thomas Gelf
d44c06fce0
IcingaService: do not hardcode override template
2016-09-08 12:08:30 +00:00
Thomas Gelf
4f4b6eb63a
IcingaService: allow host vars to override vars...
...
...for applied services
refs #12546
2016-09-08 10:45:02 +00:00
Thomas Gelf
58441b88ad
IcingaService: use string helper for assignments
2016-08-27 08:46:46 +00:00
Thomas Gelf
a761bb108b
IcingaService: render dedicated host before imports
...
This fixes issues with object and apply types showing different
behaviour in Icinga 2 when inheriting the very same template.
2016-06-17 11:55:48 +02:00
Thomas Gelf
4291f6425e
IcingaService: fake isApplyRule for host templates
2016-05-20 15:21:29 +02:00
Thomas Gelf
480e80709a
IcingaService: simplify command endpoint rendering
...
host.name doesn't work as of #11786 . host_name should be fine for
templates, objects and apply rules. I therefore also dropped the
exception for service objects with use_agent and host_id.
2016-05-19 16:06:06 +02:00
Thomas Gelf
bea8988df1
IcingaService: fix and simplify command_endpoint
2016-05-10 21:13:07 +02:00
Thomas Gelf
e803385673
IcingaService: fix command endpoint when...
...
...assigned by template
2016-03-22 03:12:15 +01:00
Thomas Gelf
99302d40f4
IcingaService: fix redirection for host services
2016-03-20 12:04:06 +01:00
Thomas Gelf
d008cb7ef9
IcingaService: fix rendering when assigned to tpl
2016-03-16 14:32:23 +01:00
Thomas Gelf
8cc7b0834e
IcingaService: override setKey, allows for...
...
...different kind of links (host/service name VS id)
2016-03-06 19:13:58 +01:00
Thomas Gelf
51916192a9
IcingaService: render assigned to host template
2016-03-06 14:21:18 +01:00
Thomas Gelf
8bcbf0f45a
IcingaObject/Host/Service: provide interval helpers
2016-02-28 14:21:00 +01:00
Thomas Gelf
4bc5afb2f8
library/Director: fix PSR2 complaints
2016-02-26 11:58:37 +01:00
Thomas Gelf
fb6518a887
IcingaObject: add awareness for apply object type
2016-02-24 21:37:48 +01:00
Thomas Gelf
5b3b5cbfb8
IcingaObjects: add new "disabled" property
2016-02-16 12:17:50 +01:00
Thomas Gelf
ff5ebdab53
IcingaService: command_endpoint fix for use_agent
2015-12-18 15:52:02 +01:00
Thomas Gelf
4e7856bc80
IcingaHost/Service: fix boolean array
2015-12-18 12:07:26 +01:00
Thomas Gelf
01be02fe9c
IcingaService: command endpoint respects use_agent
2015-12-18 11:55:42 +01:00
Thomas Gelf
53c0f94f27
IcingaService: use booleans, drop custom renderers
2015-12-18 11:52:00 +01:00
Thomas Gelf
c03aaada92
IcingaService: add use_agent
2015-12-18 11:07:23 +01:00