Commit Graph

187 Commits

Author SHA1 Message Date
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
Thomas Gelf 4a75804d86 various: change icinga.org to icinga.com
fixes #14001
2017-01-13 13:33:58 +01:00
Thomas Gelf 7c6a10013f AssignFilter: add 'contains' operator
fixes #13133
2016-12-13 14:49:36 +01:00
Christoph Niemann ddc4b9321b agent helper: add new linux agent script
fixes #12910
2016-11-30 09:45:34 +01:00
Markus Frosch aaeca533fc IcingaConfig/IcingaObject(Legacy): Render dummy notification settings
So we avoid warnings about nothing configured.

refs #13049
2016-11-30 08:12:27 +01:00
Thomas Gelf a6928a8bc1 CustomVariable: render expressions in Arrays...
...and introduce a new abstract method
2016-11-14 10:17:52 +01:00
Thomas Gelf d32f22d493 Config: do not count twice for benchmark 2016-11-14 10:17:52 +01:00
Thomas Gelf 7e749da982 IcingaServiceSet: implement target zone for...
...resolved v1 apply rules
2016-11-07 12:42:27 +01:00
Markus Frosch 003a100b9c IcingaConfig(Legacy): Add deployment mode for Icinga 1 config
refs #13049
2016-11-04 10:28:11 +01:00
Markus Frosch 7ba3c425a5 IcingaLegacyConfigHelper: Don't escape quotes in strings
refs #12919
2016-11-03 13:41:44 +01:00
Markus Frosch a804874a54 IcingaConfigRenderer(Legacy): Update classes for interface change
refs #12919
2016-11-03 13:41:44 +01:00
Markus Frosch ffab574355 IcingaConfigRenderer: Add toLegacyConfigString to support legacy config
refs #12919
2016-11-03 13:41:44 +01:00
Markus Frosch 802b923df6 IcingaConfig: Add v1-masterless config format
Do not render a passive checkable to the master zone then.

refs #12919
2016-11-03 13:41:44 +01:00
Thomas Gelf 4a82bd5b90 IcingaConfig: count apply rules and show them 2016-11-03 13:35:44 +01:00
Thomas Gelf ee0def7d2b Lots of files: make IDE users happy 2016-11-01 18:28:36 +01:00
Thomas Gelf ad7c5bc997 IcingaHost: fix tests 2016-10-25 00:30:12 +00:00
Thomas Gelf 0a6514928a AssignRenderer: add renderEquals method...
...with (hopefully temporarily) hardcoded groups support
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 b7eaab715b Make explicit calls to renderStringWithVariables 2016-10-22 05:48:09 +00:00
Corentin Ardeois 37c91050c7 Expressions syntax is now $var$
Instead of $$var$$.
We make sure $$var$$ is left untouched.

refs #11976
2016-10-22 00:15:09 +00:00