83 Commits

Author SHA1 Message Date
Thomas Gelf
f871e0bd7d basket: cleanup, fix/finish custom selection
fixes #1630
2018-10-15 15:04:14 +02:00
Thomas Gelf
83dc9dc6c3 BasketSnapshotFieldResolver: deal with fields
Also, this fixes Service Sets
2018-10-15 15:03:57 +02:00
Thomas Gelf
1903f6e097 Objects: import/export for various types 2018-10-15 15:03:57 +02:00
Markus Frosch
67222ef437 legacy: Support service blacklisting 2018-09-20 12:54:15 +02:00
Markus Frosch
d4d309a704 legacy/IcingaService/ServiceSet: Improve apply rendering
This now renders one object per zone with a list of hosts.
2018-09-05 12:35:40 +02:00
Thomas Gelf
49d9ed7ecd IcingaServiceForm: fix blacklist service from set
fixes #1519
2018-08-13 09:52:07 +02:00
Thomas Gelf
310ae7e623 IcingaService: cleanup, IcingaObject: introduce...
...getDefaultZone
2018-06-08 18:36:15 +02:00
Thomas Gelf
193c575e3a HostServiceBlacklist: small fixes
refs #907
2018-05-25 19:57:52 +02:00
Thomas Gelf
c3fd50003a IcingaService: cosmetics, render single hosts...
...with equals, multiple ones as "in array"

refs #907
2018-05-25 19:48:27 +02:00
Thomas Gelf
8073128d0e IcingaServiceForm: add blacklist/delete button...
...and a lot of related boilerplate to get the "blacklist" feature working
2018-05-25 19:11:50 +02:00
Thomas Gelf
ba5e595fd0 IcingaService: phpdoc 2018-05-25 19:11:50 +02:00
Thomas Gelf
853cecb14e HostServiceBlacklist: first implementation, schema
...and related changes

refx #907
2018-05-25 19:11:50 +02:00
Thomas Gelf
78bb9c706a FlappingSupport: dedicated object extension 2018-02-28 09:24:39 +01:00
Markus Frosch
4902f694c1 flapping: Migrate to Icinga 2.8.0 flapping properties
Existing property is dropped now, it never was used in director before.

refs #330
2018-01-15 10:10:33 +01:00
Thomas Gelf
6490283647 IcingaService: single objects w/o host must fail
fixes #1236
2017-10-12 17:01:20 +02:00
Thomas Gelf
bab28b1755 IcingaService: force object_type=template when...
...loading a service by name

fixes #1094
2017-08-25 16:10:59 +02:00
Thomas Gelf
5450a00c78 IcingaService: handle use_agent=n by explicitly...
...rendering command_endpoint = null

fixes #921
fixes #1013
2017-08-25 08:50:38 +02:00
Thomas Gelf
29d93512e6 Objects/Icinga(Host|Service): fix typo 2017-07-18 13:36:05 +02:00
Thomas Gelf
4a0e8df2f2 Host,Service: add check_timeout property
fixes #546
2017-07-14 13:21:42 +02:00
Thomas Gelf
67d802d39a Host,Service: hide choice property 2017-07-14 13:21:42 +02:00
Thomas Gelf
a9a2295c8a IcingaObject, Host/Service: add supportsChoices() 2017-07-14 13:21:42 +02:00
Thomas Gelf
b7a10d296c phpcs: mostly new PSR-2 SpacingAfter/Before checks 2017-01-13 20:54:52 +01:00
Thomas Gelf
9e771f2d5a Fix phpcs complaints 2017-01-13 19:47:54 +01:00
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