52 Commits

Author SHA1 Message Date
raviks789
e48ddd2f35 Restore services of service set on restoring service set
All the services which were under the service set when it was deleted must be restored when it is restored from activity log.
2024-02-07 13:40:33 +01:00
Thomas Gelf
4d050834db IcingaConfig: render host templates to all...
...non-global zones, instead of the default global zone

refs #2410
2023-09-21 15:22:31 +02:00
EmTeedee
6b7bff80de ${var} deprecated in favor of {$var}
See: https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.dollar-brace-interpolation
2023-07-19 10:44:40 +02:00
Thomas Gelf
bec49d1230 library: cleanup, drop import/export methods 2023-03-07 14:29:34 +01:00
Thomas Gelf
c07758b5d9 IcingaServiceSet: virtual services property...
...should be handled. We can now store a set with it's services
2023-03-07 14:03:09 +01:00
Thomas Gelf
51380a9e0b IcingaServiceSet: respect indivicual template zone
fixes #1589
fixes #2356
2022-11-15 17:28:33 +01:00
Thomas Gelf
b19dd5f62d IcingaServiceSet: use query builder to retrieve...
...services, this is required for branches
2022-09-20 12:55:55 +02:00
Thomas Gelf
8b1513830c IcingaServiceSet: do not delete Services w/o id 2022-09-20 07:20:29 +02:00
Thomas Gelf
8bfbe2a80f IcingaServiceSet: friendlier error message 2022-09-15 11:44:43 +02:00
Thomas Gelf
9434cf5089 IcingaServiceSet: type hint for IDE 2022-09-15 11:44:24 +02:00
Thomas Gelf
56f81b91bb Exporter: centralize export logic
fixes #2549
2022-06-24 12:52:35 +02:00
Thomas Gelf
11f621df30 IcingaServiceSet: do not eport the UUID for now
fixes #2488
2022-04-05 08:48:42 +02:00
raviks789
b04fe28932 Delete newly added Services in Service Set when restoring it from snapshot
The Services which were added into the Service Set after the snapshot was created
must be deleted when the Service Set is being restored from the snapshot.
2022-01-24 15:26:48 +01:00
Thomas Gelf
0fcbc2783b IcingaServiceSet: load services by UUID
fixes #2454
2022-01-10 13:31:25 +01:00
Ravi Kumar Kempapura Srinivasa
388c79e430 Add uuid to service sets. 2021-11-28 11:15:31 +01:00
Markus Frosch
1e5f6b4f76 IcingaServiceSet: Refactor config rendering for sets
* A header is now always rendered and includes assign and description
* Diff is now visible for sets
2019-04-10 13:24:04 +02:00
Markus Frosch
1713dee1c1 IcingaServiceSet: Delete host sets when deleting a set
This allows service sets to be deleted, including their children sets that
are assigned to hosts.

The UI forbids deleting those sets, but we can use it like this for CLI
and purging during sync.
2019-03-26 12:39:06 +01:00
Markus Frosch
b8e00e9b8c legacy: Ignore hosts that are disabled or blacklisted properly 2019-03-06 14:58:56 +01:00
Thomas Gelf
429be2dd76 IcingaServiceSet: fix rendering of Sets attached..
...to single Hosts

fixes #1789
2019-02-26 15:03:41 +01:00
Thomas Gelf
85ed54f932 IcingaServiceSet: skip Service on single host...
...when blacklisted

fixes #1616
2019-02-15 00:48:05 +01:00
Thomas Gelf
bb0422c327 Basket: related fixes 2018-11-15 11:14:14 +01: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
ff77aa9879 IcingaServiceSet: Render sub-sets in config preview 2018-09-06 14:07:33 +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
3ffacc70b6 IcingaServiceSet: do not delete on title click
fixes #1560
2018-08-13 11:21:54 +02:00
Thomas Gelf
01b85f5758 IcingaServiceSet: render comment next to Set 2018-08-13 07:52:59 +02:00
Thomas Gelf
8c432285e7 Various: stick with default exceptions...
...IDE hints are annoying
2018-05-29 21:31:43 +02:00
Thomas Gelf
804008673a IcingaCloneObjectForm: clone sets with services...
...and fix redirection

fixes #852
2017-09-11 16:02:39 +02:00
Thomas Gelf
a3ac1b8eef IcingaServiceSet: fix tests 2017-08-28 06:16:00 +02:00
Thomas Gelf
20fe291433 IcingaServiceSet: do not allow for objects without
...a host
2017-08-28 06:09:37 +02:00
Thomas Gelf
c2afacc11b IcingaServiceSet: createWhere() look for template
...in case no host_id has been set
2017-08-28 06:09:37 +02:00
Thomas Gelf
bfde75a0a2 IcingaServiceSet: import DirectorOverrideTemplate
...when rendering services belonging to a set for a single host

fixes #776
2017-02-08 10:04:47 +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
Markus Frosch
3a8cad2486 IcingaServiceSet: Check if object_name is unique for templates
refs #13309
2016-11-28 15:32:41 +01:00
Markus Frosch
d4c3be0bf5 IcingaHostGroup|IcingaService(Set): Fix legacy config file extension
refs #13049
2016-11-14 15:28:52 +01:00
Markus Frosch
ddd59ab274 IcingaServiceSet: A simple key identifies a ServiceSet (template)
refs #12891
2016-11-11 11:06:01 +01:00
Thomas Gelf
1a311bc9a9 IcingaServiceSet: ignore empty sets when rendering
fixes #13079
2016-11-08 16:23:16 +01:00
Thomas Gelf
7e749da982 IcingaServiceSet: implement target zone for...
...resolved v1 apply rules
2016-11-07 12:42:27 +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
Markus Frosch
31a321e13e IcingaObject(legacy): Add flag to render only supported objects
refs #12919
2016-11-03 13:41:44 +01: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
f09560a89e IcingaServiceSet: simplify code 2016-10-25 23:12:23 +00:00
Thomas Gelf
354d12946a IcingaServiceSet: render custom vars 2016-10-25 23:12:23 +00:00
Thomas Gelf
6a45d9507d IcingaServiceSet: remove legacy resolving methods
They have been used once we had no imports
2016-10-25 23:12:23 +00:00
Thomas Gelf
9e1cea0119 IcingaObject: fix v1 rendering for some properties
Mostly relations, no timeout, still ugly
2016-10-12 08:31:22 +00:00
Thomas Gelf
e096ec9ec5 IcingaServiceSets: allow to set imports 2016-10-12 08:30:10 +00:00