Commit Graph

206 Commits

Author SHA1 Message Date
Thomas Gelf 82656de2c2 Director: some PHP 8.1-related changes 2021-11-28 11:13:08 +01:00
Markus Frosch 8237d84cdb Add feature to specify a custom endpoint name for a host
- Render Endpoint and Zone with a different name per host
- Add custom variable `_director_custom_endpoint_name` to a host with that name
- Update `command_endpoint` behavior in services to use custom var or hostname
- Includes a feature flag that needs to be enabled
2021-10-21 14:59:52 +02:00
Thomas Gelf 57c4dda117 Objects/*, CVs, others: unify setBeingLoadedFromDb 2021-10-05 23:33:30 +02:00
Thomas Gelf 5de3a6a497 Db: clean up methods related to binary PG data 2021-08-16 06:14:34 +02:00
Eric Lippmann 1a61cfc5c7 Use Icinga 2's generate-ticket API 2021-07-12 23:54:47 +02:00
Thomas Gelf eee4f7cf55 IcingaConfig: store config file relations in a...
...transaction: all or nothing

fixes #2351
2021-07-12 23:43:04 +02:00
Thomas Gelf 2c950e05ea IcingaConfigHelper: re-order reserved words 2021-05-20 15:20:21 +02:00
Thomas Gelf 10ada10527 IcingaConfigHelper: improve readability 2021-05-20 10:28:07 +02:00
Thomas Gelf 62c4c6f44b SelfService: add Icinga for Windows support...
...to the Agent tab

fixes #2147
2020-11-30 21:02:45 +01:00
Thomas Gelf e2696fd75a IcingaConfig: remove magic_apply_for
This has always been and experimental feature, deprecated since v1.7.0

fixes #1851
2020-11-28 19:09:58 +01:00
Thomas Gelf 961c089170 ExtensibleSet: try to fix problem with nightly PHP 2019-09-11 23:43:41 +02:00
Markus Frosch 92f2f9f44d IcingaConfig: Deprecate magic_apply_for as config feature
fixes #1850
2019-04-30 12:41:53 +02:00
Thomas Gelf 90c5a007da IcingaConfig: deploy scheduled downtimes 2019-04-11 02:53:10 +02:00
Markus Frosch f60cb9a515 ConfigHelper: Ensure empty strings are written out quoted
In renderStringWithVariables()
2019-03-21 13:18:22 +01:00
Thomas Gelf 0139506494 AssignRenderer: fix and test NOT on root level
fixes #1777
2019-02-08 12:08:06 +01:00
Thomas Gelf b9c5f94589 IcingaConfigHelper: add missing reserved keywords
fixes #1765
2019-01-23 10:28:29 +01:00
Thomas Gelf cf6e4536ea Util: drop bin2hex/hex2bin helpers
We dropped support for PHP 5.3, this is no longer required
2018-10-30 15:32:17 +01:00
Michael Friedrich bb81de8b84 Render Icinga config helpers with safe globals access
globals[key] works, although it wasn't documented how it
behaves in the case when this field doesn't exist.

Previously this has been a dictionary which silently returns
null if the key doesn't exist. With v2.10, globals turned
into a namespace which throws an error if not existing (which is
the correct behaviour).

In order to avoid configuration errors with 2.10, this is changed
into `contains()` which has been sitting in dictionaries since 2014.
So this patch ensures compatibility with older versions as well.
2018-09-27 10:40:58 +02:00
Markus Frosch 926bc2b0c6 legacy: Improve interval rendering 2018-09-20 15:58:39 +02:00
Markus Frosch 2075f2e54a IcingaConfig: Avoid try/except for compatibility with Icinga >= 2.6
try / except was never needed there, because get_host should never
throw an exception. It will be null then.

fixes #1610
2018-08-22 20:41:45 +02:00
Thomas Gelf bf68dbcaca IcingaConfig: fix Service Override template name
Got broken by fd372c6 for #1579

fixes #1601
2018-08-14 08:34:41 +02:00
Markus Frosch 217e3c1dce Update and improve Linux kickstart script
* Multiple Endpoints
* Default Global Zone is added automatically
* Stable without need for sysconfig

fixes #1585
2018-08-10 10:43:55 +02:00
Thomas Gelf fd372c6b62 IcingaConfig: check whether get_host succeeded...
...and warn otherwise

fixes #1595
2018-08-09 16:06:50 +02:00
Thomas Gelf 35815e0dad library: lot's of cleanup 2018-06-19 13:47:19 +02:00
Thomas Gelf 450f40b402 IcingaConfig: remove superflous parameter
fixes #1514
2018-06-07 14:33:00 +02:00
Thomas Gelf b475aa841e IcingaConfigHelper: granular macro-rendering
fixes #685
fixes #1272
fixes #1482
2018-06-04 18:18:32 +02:00
Thomas Gelf 5d4408862a Settings, CoreApi: allow to configure package name
fixes #1497
2018-06-01 16:27:00 +02:00
Thomas Gelf 8c432285e7 Various: stick with default exceptions...
...IDE hints are annoying
2018-05-29 21:31:43 +02:00
Markus Frosch 8b7b9024c4 IcingaConfig: Remove library import from generated config
`library "methods"` was when Director set the actual execution method
for commands.
2018-05-29 17:41:09 +02:00
offsides 38a56f68fe Assign: add "is not set" operator
fixes #1436
2018-05-04 12:42:39 +02:00
Thomas Gelf 4c77a32ee0 IcingaConfig: remove hard-coded global zone
Anyways, this line should be obsolete
2018-05-04 08:45:32 +02:00
Markus Frosch 07d830b06f IcingaObject: Render flapping thresholds downwards compatible
Settings are ignored in Icinga < 2.8.0 and a warning is logged.

refs #330
2018-01-15 10:10:33 +01:00
Markus Frosch b9190755a6 IcingaObject: Support numeric properties
Similar to intervalProperties
2018-01-15 10:10:33 +01:00
Thomas Gelf 996918aafa MemoryLimit: dedicated class, tests
fixes #1220
2017-10-10 14:35:32 +02:00
Marc DeTrano 6bea1eff41 Implement Icinga Dependency Configuration. 2017-09-28 11:01:27 +02:00
Thomas Gelf 77290c3bf3 IcingaConfigHelper: always render $user.*$ and...
...$notification.*$ as macros

fixes #1176
2017-09-12 15:47:42 +02:00
Thomas Gelf a6222e2abb AssignRenderer: special treatment for not in group
fixes #686
2017-08-25 16:22:22 +02:00
Thomas Gelf 99eb6acd63 AssignRenderer and Form: "is true/set" operator
refs #339
fixes #729
fixes #739
2017-08-25 12:08:11 +02:00
Thomas Gelf 7dde47dbca AgentWizard: just a newline 2017-08-14 15:14:57 +02:00
Thomas Gelf f44afef214 ActivityLog: refactor code, fix HTML, use ipl 2017-07-25 14:04:08 +02:00
Thomas Gelf 3062cf2ebd AgentWizard: use new installer syntax 2017-07-20 18:33:49 +02:00
Thomas Gelf 408e3753ab AgentWizard: add new functionality 2017-07-20 16:58:48 +02:00
Thomas Gelf a63135be2a ExtensibleSet: check for empty array
refs #906
2017-04-21 15:11:18 +02:00
Thomas Gelf e1760724b8 AssignRenderer: hardcode int for specific filters
fixes #850
2017-03-15 15:00:38 +01:00
Thomas Gelf da41e2f4db AssignRenderer: improve/separate in-related code
fixes #844
2017-03-13 22:25:04 +01:00
Thomas Gelf a48e0c6dda AssignRenderer: test and fix contains rendering
fixes #803
2017-03-06 11:10:24 +01:00
Thomas Gelf 5842e40fb6 AssignRenderer: do not re-use json-encoded value
...as encoding in Icinga 2 differs

fixes #558
2017-03-03 09:24:15 +01:00
Thomas Gelf c7d90481a4 AgentWizard: endpoints should be an array
refs #651 - but doesn't fix the issue
2017-01-18 14:31:54 +01: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