98 Commits

Author SHA1 Message Date
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
Thomas Gelf
f4ca547ac2 IcingaService: render intervals in a nice way 2015-12-10 12:57:45 +01:00
Thomas Gelf
61cdeadb5d IcingaService: add and render (host) relations 2015-12-10 12:12:58 +01:00
Thomas Gelf
7fb1182cc8 IcingaService: add basics for command resolution 2015-11-15 16:39:20 +01:00
Thomas Gelf
b265f48a89 IcingaService: make use of fields 2015-07-31 17:34:12 +02:00
Alexander Fuhr
fd74a8dfd5 Add imports support to Service 2015-06-26 16:20:16 +02:00
Thomas Gelf
b75029c5aa IcingaCommand,Service,User: support custom vars 2015-06-24 10:13:27 +02:00
Alexander Fuhr
193cb60604 Groups: Add groups support to User, Host and Service 2015-06-16 17:51:01 +02:00
Alexander Fuhr
db58cb8882 Object/IcingaService: Add boolean render methods to affected properties 2015-06-12 11:01:26 +02:00
Thomas Gelf
d2bb7fc9de IcingaHost, IcingaService: render check_command name 2015-06-08 14:41:40 +02:00
Alexander Fuhr
0c66f23430 Service: Add form, table, object and actions 2015-06-03 14:34:54 +02:00