Commit Graph

32 Commits

Author SHA1 Message Date
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 a8179507dc IcingaObject(Legacy): Make getLegacyObjectType public
refs #12919
2016-11-03 13:41:44 +01:00
Markus Frosch ffa5da86c9 IcingaCommand(Legacy): Fix type and render command_line
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 b6d59b9aca IcingaCommand: fix skip_key handling
refs #11554
refs #11918
2016-08-26 07:00:45 +00:00
Thomas Gelf 9fb547a849 IcingaCommand/TimePeriod: use internalized templates
Icinga 2.5 moved a few default templates from ITL to the core itself and
deprecated directly setting execute & similar properties. This change will
break config deployment for 2.4.x environments without 'include <itl>', but
this would rarely be the case.

This commit also changed how we work with inherited properties to render the
right object type based on 'execute' if none is set (but got inherited).

fixes #12443
fixes #12543
2016-08-25 10:16:00 +00:00
Thomas Gelf ce1c6f3099 Objects: simplify default rendering zone handling
For existing installations this should only affect Timeperiods, as
they will now prefer the global zone. Also some custom zone settings
might now take effect while they have formerly been ignored.

fixes #12252
2016-07-28 15:44:42 +00:00
Thomas Gelf c9ef9fe91a IcingaCommand: fix EventCommand header
fixes #12010
2016-06-22 23:58:09 +02:00
Thomas Gelf 3b8b41c3f6 IcingaCommand: allow lowercase drives (e.g. c:)
fixes #11906
2016-06-11 00:41:35 +02:00
Thomas Gelf 9b731641c4 IcingaCommand: correctly render notification cmds 2016-05-19 17:04:28 +02:00
Thomas Gelf 4222261434 IcingaCommand: fix windows absolute path detection
Also add a couple of new related tests

fixes #11550
2016-05-13 16:01:47 +02:00
Thomas Gelf b6b15ce7e3 IcingaCommand: prefer to be rendered to global 2016-04-23 14:08:25 +02:00
Thomas Gelf 65b048d78b IcingaCommand: allow underscore in constant names 2016-04-01 14:08:27 +02:00
Thomas Gelf 03d739170c IcingaCommand: zone is a relation 2016-04-01 14:08:11 +02:00
Thomas Gelf 9120db3f70 IcingaCommand: allow formatted timeout (e.g. 1m 4s)
refs #11340
2016-03-09 18:12:01 +01:00
Thomas Gelf 4bc5afb2f8 library/Director: fix PSR2 complaints 2016-02-26 11:58:37 +01:00
Thomas Gelf 5b3b5cbfb8 IcingaObjects: add new "disabled" property 2016-02-16 12:17:50 +01:00
Thomas Gelf 457fb859e4 IcingaCommand/Endpoint: fix typo 2015-12-03 18:02:57 +01:00
Thomas Gelf d8d12d38b4 IcingaObject: add new helper methods for seconds 2015-12-03 18:01:44 +01:00
Thomas Gelf e29da23f99 IcingaCommand: add mungeCommand
Supports arrays and optional PluginDir resolution
2015-12-02 03:20:55 +01:00
Thomas Gelf 06736e1508 IcingaCommand: improve timeout rendering 2015-12-02 02:53:27 +01:00
Thomas Gelf 06f9477bc1 IcingaCommand: fix magic PluginDir prefix 2015-10-28 22:28:43 +01:00
Thomas Gelf a1aea38cb4 IcingaCommand: extend input handling, be flexible 2015-10-16 18:39:13 +02:00
Thomas Gelf 371589a2a7 IcingaCommand: render command as an array 2015-10-16 18:13:42 +02:00
Thomas Gelf 7b1fda25bd IcingaCommand: prepare argument handling 2015-08-28 23:44:26 +02:00
Alexander Fuhr cdb66b648a Add imports support for Command 2015-06-29 10:39:37 +02:00
Thomas Gelf b75029c5aa IcingaCommand,Service,User: support custom vars 2015-06-24 10:13:27 +02:00
Thomas Gelf f354d3c034 IcingaConfig: improve prefix/intendation handling 2015-06-11 23:02:43 +02:00
Thomas Gelf 6475e0495a IcingaConfigHelper: move to IcingaConfig namespace 2015-06-11 22:44:17 +02:00
Thomas Gelf eaea917c1f IcingaCommand: render methods_execute as execute 2015-06-11 22:01:12 +02:00
Thomas Gelf ca3398247e Activity log: initial basic implementation
fixes #9167
2015-04-24 15:57:01 +02:00
Thomas Gelf 332ec1da4b Initial rough abstractions, basic forms
fixes #9134
2015-04-24 14:26:44 +02:00