Commit Graph

3113 Commits

Author SHA1 Message Date
Ravi Kumar Kempapura Srinivasa 388c79e430 Add uuid to service sets. 2021-11-28 11:15:31 +01:00
Thomas Gelf 5fe0a8812c Monitoring permissions for single services only 2021-11-28 11:13:28 +01:00
Thomas Gelf 82656de2c2 Director: some PHP 8.1-related changes 2021-11-28 11:13:08 +01:00
raviks789 124c4e4c17 Add cube links for objects from Icingadb and register the hook 2021-11-24 14:43:41 +01:00
Thomas Gelf 6786cc768f Director: some fixes for PHP v8.1
refs #2435
2021-11-24 11:56:18 +01:00
Markus Frosch 4f959572f2 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
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 3d528dc3af ObjectsTableEndpoint: provide UUID 2021-10-18 17:32:58 +02:00
Thomas Gelf 30c6e50e33 BranchMerger: remove obsolete method call 2021-10-18 13:35:57 +02:00
Thomas Gelf 2d79281583 ApplyRulesTable: use UUIDs
refs #2411
2021-10-18 10:04:28 +02:00
Thomas Gelf ce3ec67eb6 HostServiceBlacklist: fix exception in branches 2021-10-18 07:46:27 +02:00
Thomas Gelf e29c025d64 Service/TemplateController: fix links, use uuids
fixes #2411
2021-10-18 07:27:28 +02:00
Thomas Gelf 7b4e9b4f91 IcingaObject: fix null check for ranges
fixes #2408
2021-10-11 17:45:55 +02:00
Thomas Gelf 75e414006d DbObject: UUID on insert is required
fixes #2407
2021-10-08 15:23:17 +02:00
Thomas Gelf 8ec56ff16e DbObject: allow to set loaded properties 2021-10-05 23:33:30 +02:00
Thomas Gelf 2994403aa8 DbObject: allow arrays in fromDbRow, handle errors 2021-10-05 23:33:30 +02:00
Thomas Gelf f0d63ad23b DbObject: add UUID support 2021-10-05 23:33:30 +02:00
Thomas Gelf fe97970dc3 IcingaCommandArgumentTable: branch-specific fixes 2021-10-05 23:33:30 +02:00
Thomas Gelf 97b2f6c946 CommandController: branch support, argument table 2021-10-05 23:33:30 +02:00
Thomas Gelf 2b62742362 UuidLookup: initial import 2021-10-05 23:33:30 +02:00
Thomas Gelf a00c91991d ObjectController: refactor Branch usage, give...
...more and better hints
2021-10-05 23:33:30 +02:00
Thomas Gelf 649a5dbe5e BranchedObject: initial import 2021-10-05 23:33:30 +02:00
Thomas Gelf 09c9a9db72 DirectorObjectForm: use new DbObjectStore 2021-10-05 23:33:30 +02:00
Thomas Gelf 2dc83478ae IcingaHostServiceTable: support Branches 2021-10-05 23:33:30 +02:00
Thomas Gelf c994610031 DirectorObjectForm: hidden id field, start...
...fading it out - don't want to see this here
2021-10-05 23:33:30 +02:00
Thomas Gelf 8560abfaa7 DbObjectStore: refactor, drop load() for now 2021-10-05 23:33:30 +02:00
Thomas Gelf 57c4dda117 Objects/*, CVs, others: unify setBeingLoadedFromDb 2021-10-05 23:33:30 +02:00
Thomas Gelf 835d01cdec IcingaObject: disabled = null is not a thing 2021-10-05 23:33:30 +02:00
Thomas Gelf 84c299a7db Table/Object*: use UUIDs 2021-10-05 23:33:30 +02:00
Thomas Gelf ce13200832 DbObjectTypeRegistry: new helper methods 2021-10-05 23:33:30 +02:00
Thomas Gelf 1845b43314 ObjectsTable: we have UUIDs now, new column names 2021-10-05 23:33:30 +02:00
Thomas Gelf 73884536df ServiceActions: formatting 2021-10-05 23:33:30 +02:00
Thomas Gelf 8601f26f03 BranchSupportHook: drop linkToBranchedObject 2021-10-05 23:33:30 +02:00
Thomas Gelf b12d50a16a HostgroupRestriction: do not fail on hosts w/o ID 2021-10-05 23:33:30 +02:00
Thomas Gelf 70c0b8f247 BranchActivityTable: new columns, better query 2021-10-05 23:33:30 +02:00
Thomas Gelf 98a8050718 BranchStore: new column names, delete methods 2021-10-05 23:33:30 +02:00
Thomas Gelf e17535117e BranchModificationInspection: column names, uuid 2021-10-05 23:33:30 +02:00
Thomas Gelf dc52a54888 BranchMerger: use Activity instances 2021-10-05 23:33:30 +02:00
Thomas Gelf 7ad9cf6c6c BranchActivity: formatting 2021-10-05 23:33:30 +02:00
Thomas Gelf b22511e341 Branch: add assertBranch helper method 2021-10-05 23:33:30 +02:00
Thomas Gelf 59f6051623 Branch: use new ts_merge_request column 2021-10-05 23:33:30 +02:00
Thomas Gelf f7d100ea24 Branch: remove outdated classes 2021-10-05 23:33:30 +02:00
Thomas Gelf 5483093959 MergeError: support BranchActivity 2021-10-05 23:33:30 +02:00
Thomas Gelf 2b24e9bcf8 BranchedObjectHint: move, support BranchedObject 2021-10-05 23:33:30 +02:00
Thomas Gelf 2f1a47c34a PlainObjectPropertyDiff: diff calculation 2021-10-05 23:33:30 +02:00
Thomas Gelf 654f845e4e Json: implement decodeOptional() for null support 2021-10-05 23:33:30 +02:00
Thomas Gelf c2d7b235a5 IcingaConfigDiff: replace duplicate code 2021-10-05 23:33:30 +02:00
Thomas Gelf 5aba966a4b IcingaCommandArgument: use a combined key 2021-10-05 23:33:30 +02:00
Thomas Gelf 792ff03a6d Objects: add uuid column 2021-10-05 23:33:30 +02:00
Thomas Gelf 65bbaa9f98 IcingaObject: custom vars, also load them only...
...when we got an id
2021-10-05 23:33:30 +02:00
Thomas Gelf 182d1b519b IcingaObject: do not load groups when we have...
...no id. With branches this is now possible
2021-10-05 23:33:30 +02:00
Thomas Gelf 1a5df745e3 IcingaObject: add some type-hints 2021-10-05 23:33:30 +02:00
Thomas Gelf a29efe478c IcingaArguments: remove Argument set to null 2021-10-05 23:33:30 +02:00
Thomas Gelf 5494ab29bd BranchActivity: dedicated class 2021-10-05 23:33:30 +02:00
Thomas Gelf 2c27446c9f NotInBranchHint: dedicated class, used in our...
...BranchHelper
2021-10-05 23:33:30 +02:00
Thomas Gelf a1fb42878c BranchSettings: some generic settings and helpers 2021-10-05 23:33:30 +02:00
Ravi Kumar Kempapura Srinivasa 90b5f6fdac Convert $imports keys to string explicitly
The keys of $imports in IcingaObjectImports must be converted to string explicitly or else it establishes incorrect parent-child relation
in icinga_host_inheritance table in case the key is integer value and there is an host object with id = key(integer) icinga_host table.
This results in undefined offset while triggering sync rule.
2021-10-01 10:47:54 +02:00
Ravi Kumar Kempapura Srinivasa 6289bf065f Pass $resolved as False for arguments to toPlainObject()
IcingaArguments passes the $resolved through to the individual argument in the toPlainObject. There lies the error,
simply pass false - because the argument itself cannot have any parents and therefore cannot be resolved
2021-10-01 10:47:12 +02:00
Thomas Gelf 378ef5d686 ObjectsTable, Infra: fix method signature
fixes #2395
2021-09-23 07:32:35 +02:00
Thomas Gelf 83c12fefcf SingleServiceInfo: fix URL for single services
This affected clicking "modify" in the monitoring module
2021-09-09 16:25:28 +02:00
Thomas Gelf de4378cfd3 DbObjectTypeRegistry: support 'serviceset' 2021-09-09 16:17:42 +02:00
Johannes Meyer 82ae0dc52e Host|ServiceActions: Don't check object access if monitoring isn't active 2021-09-01 10:35:32 +02:00
Thomas Gelf 435b1f9b1d BranchModificationStore: centralize encoding rules 2021-08-26 10:18:06 +02:00
Thomas Gelf 6cc902f238 BranchesDashboard: do not fail with no dashlet 2021-08-25 16:24:54 +02:00
Thomas Gelf b898041caa DirectorObjectForm: use Branch, not UUID 2021-08-25 13:00:56 +02:00
Thomas Gelf 8a280619ad DbObjectStore: load by ID for int keys 2021-08-25 12:14:22 +02:00
Thomas Gelf 430f54837b DeployedConfigInfoHeader: do not re-deploy...
...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branch
2021-08-25 11:38:29 +02:00
Thomas Gelf bdd9e2b1e5 IcingaCloneObjectForm: do not clone templates...
...in branches. Reason: fields
2021-08-25 11:28:51 +02:00
Thomas Gelf dfdec95358 IcingaObjectModification: allow to pass db
fixes an issue with related objects on create
2021-08-25 00:54:30 +02:00
Thomas Gelf 44b749f2bf BranchModificationStore: cast eventual objects 2021-08-24 18:47:13 +02:00
Thomas Gelf 23f1fae784 BranchModificationStore: fix serialization 2021-08-24 18:46:55 +02:00
Thomas Gelf 607f53fecc BranchesDashboard: prominent hint -> active branch 2021-08-24 16:33:16 +02:00
Thomas Gelf b321327634 Dashboard: provide space for Branch Hook dashlets 2021-08-24 16:13:22 +02:00
Thomas Gelf 15adce142f ObjectModificationBranchHint: variants, details 2021-08-23 09:01:03 +02:00
Thomas Gelf 290e34a8ca ObjectsTable: add branchUuid, fail-safe 2021-08-23 09:00:26 +02:00
Thomas Gelf 6ff5b0c8d7 ConfigHealthItemRenderer: ask branch for count 2021-08-23 08:58:02 +02:00
Thomas Gelf 085cec0eb7 BranchedObjectsHint: new hints for lists 2021-08-23 08:56:16 +02:00
Thomas Gelf 48ac87cff5 ObjectController: hook has been updated 2021-08-23 08:55:30 +02:00
Thomas Gelf d83a0aaba5 BranchHelper: use BranchStore 2021-08-23 08:54:34 +02:00
Thomas Gelf 04f3c6363e BranchSupportHook: smaller changes 2021-08-23 08:53:40 +02:00
Thomas Gelf 5002f7a6bf IcingaObjectModification: loop with an array 2021-08-23 08:53:22 +02:00
Thomas Gelf 2897415a1f BranchStore: centralized repository 2021-08-23 08:52:12 +02:00
Thomas Gelf c79045e9e2 Branch: add a bunch of properties and getters 2021-08-23 08:50:44 +02:00
Thomas Gelf 1470a134f4 Branch support: initial import 2021-08-16 11:43:09 +02:00
Thomas Gelf 38d17af92e DirectorObjectForm: remove unused property 2021-08-16 11:22:50 +02:00
Thomas Gelf 44a90afea2 DbSelectParenthesis: allow to defer Db Expr...
...stringification when required to apply parenthesis (-> union)
2021-08-16 10:51:57 +02:00
Thomas Gelf 7c553257a6 ObjectController: fail when loading twice 2021-08-16 07:12:06 +02:00
Thomas Gelf f0deb11e7f IcingaObject: no empty vars for unmodified plain 2021-08-16 06:33:34 +02:00
Thomas Gelf 1d5b00a675 IcingaObject: unify DB boolean value converter
Hint: fixes booleans for "plain unmodified" objects
2021-08-16 06:33:23 +02:00
Thomas Gelf 77fca39ff3 IcingaObject: getAppliedGroups with id=null 2021-08-16 06:21:50 +02:00
Thomas Gelf 21dcadd143 Db: remove unused properties 2021-08-16 06:17:46 +02:00
Thomas Gelf 5de3a6a497 Db: clean up methods related to binary PG data 2021-08-16 06:14:34 +02:00
Thomas Gelf 62a31c7858 DbObject: some cleanup 2021-08-16 06:02:36 +02:00
Thomas Gelf a0253250c1 DbObject: allow to setBeingLoadedFromDb 2021-08-16 06:02:15 +02:00
Thomas Gelf 40c2aaeb22 ObjectsTableService: fix typo
fixes #2357
2021-08-16 05:43:41 +02:00
Thomas Gelf c822f3b981 DatafieldCategoryTable: fix SQL error on search
fixes #2367
2021-08-16 05:40:23 +02:00
Thomas Gelf 093abfd733 DatafieldTable: fix grouping error on PostgreSQL
fixes #2310
2021-08-16 05:36:10 +02:00
Thomas Gelf f87eff8a21 PropetyModifierToInt: fail for non-strings
fixes #2372
2021-08-12 11:52:31 +02:00
Thomas Gelf 909fac0419 PropertyModifier: preserve null values
fixes #2371
2021-08-12 11:45:40 +02:00
Thomas Gelf 6678a9a8f9 HostGroupMembershipResolverTest: replace new dummy 2021-08-04 15:06:34 +02:00
Thomas Gelf 66de47b10b DbObjectTypeRegistry: move logic from IcingaObject 2021-08-04 13:18:30 +02:00
Thomas Gelf be9fcfc3c2 DataArrayHelper: readability 2021-08-04 08:21:58 +02:00
Thomas Gelf 348c2d9de4 DataArrayHelper: new helper class 2021-08-03 15:33:09 +02:00
Thomas Gelf 6152b5d1de SerializableValue: new helper class 2021-08-03 11:45:13 +02:00
Thomas Gelf f7e9c145eb Data\Json: "reproducible" JSON 2021-08-03 11:30:48 +02:00
Thomas Gelf 7f16d648cc IcingaUser: add basket support
fixes #2328
2021-07-15 19:11:20 +02:00
Thomas Gelf 6badc53d61 DependencyChecker: new implemenation
This is now also able to give help for web 2.9.x

fixes #2354
fixes #2350
2021-07-13 09:50:17 +02:00
Thomas Gelf 44ca8890f2 ActionController: check view->compact
fixes #2141
2021-07-13 01:01:49 +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
Sebastian Gumprich fed74eb33d IcingaObject: alias scheduled_downtime
Fixes an error when trying to create scheduled_downtime via api

fixes #1879
2021-07-12 23:25:42 +02:00
Thomas Gelf f27390d503 ImportRunBasedPurgeStrategy: fixed combined keys
fixes #2339
2021-07-12 23:11:40 +02:00
Thomas Gelf bf32380d32 IcingaServiceSetServiceTable: show "deactivated"
...in RO users overview table

fixes #2344
2021-06-23 18:29:56 +02:00
Thomas Gelf 2538feaf42 ServiceSetServiceInfo: respect deactivation
fixes #2323
2021-06-23 18:25:14 +02:00
Thomas Gelf 234bb89454 QuickForm: typo 2021-06-01 21:29:21 +02:00
Thomas Gelf ac652f5966 Basket: allow Notification Apply Rules export
fixes #2335
2021-05-28 15:24:18 +02:00
Thomas Gelf 40544ac935 ObjectPreview: fix inline Service Template links...
...for Service Sets

fixes #2334
2021-05-28 10:48:29 +02:00
Thomas Gelf ec87cd0ec2 OverriddenVarsResolver: deal with root templates
fixes #2333
2021-05-28 10:39:29 +02:00
Thomas Gelf 2cff396fe4 DbDataFormatter: new helper class
Trying to reduce logic in IcingaObject
2021-05-20 16:21:46 +02:00
Thomas Gelf 2c950e05ea IcingaConfigHelper: re-order reserved words 2021-05-20 15:20:21 +02:00
Thomas Gelf 7de5b03877 IcingaObject: readability, style 2021-05-20 15:11:12 +02:00
Thomas Gelf 80965053cf IcingaDependency: isApplyForArrayClone(), cleanup 2021-05-20 11:48:17 +02:00
Thomas Gelf 10ada10527 IcingaConfigHelper: improve readability 2021-05-20 10:28:07 +02:00
Thomas Gelf da1363d236 IcingaService: public hasBeenAssignedToHostTemplate 2021-05-20 10:24:27 +02:00
Thomas Gelf e5595431df PropertyModifierSimpleGroupBy: new modifier
fixes #2317
2021-04-23 17:38:52 +02:00
Thomas Gelf c5e25cdcc7 ScheduledDowntime: introduce a new permission...
...and a related name-based restriction

fixes #2086
2021-04-23 12:33:42 +02:00
Mattia Codato 9387ede99a Add hook deployment onCollect 2021-04-20 16:13:48 +02:00
Thomas Gelf a2016e99c0 IcingaObject: do not load resolved memberships...
...for unstored objects
2021-04-15 10:22:45 +02:00
Thomas Gelf 7a9e7d163d ObjectPurgeHelper: remove comments 2021-04-15 08:44:18 +02:00
Thomas Gelf 93222099ad BacketCommand: allow to purge objects on restore
fixes #2201
2021-04-15 08:30:32 +02:00
Thomas Gelf c709c00fbd ObjectApplyMatches: fetch allied host groups
fixes #2313
2021-04-14 09:03:35 +02:00
Thomas Gelf b6375b477d CoreApiFieldsTable: show "deprecated" flag
fixes #2312
2021-04-13 17:02:28 +02:00
Thomas Gelf d03751f614 ImportsourceHookTable: just a comment 2021-04-13 16:34:13 +02:00
Thomas Gelf 302c9b645d DirectorDatafield: fix changed method name
fixes #2278
2021-03-19 13:24:58 +01:00
Thomas Gelf c27d9c7387 Monitoring, various: use monitoring permissions
fixes #2304
2021-03-18 07:01:42 +01:00
Thomas Gelf 4c4f9541e5 DirectorObjectForm: show inherited non-scalars...
...in select boxes. This should make it more obvious that invalid data has been
inherited.

refs #2288
2021-03-12 00:07:50 +01:00
Thomas Gelf 09a0323ad6 DirectorObjectForm: render inherited scalars only
fixes #2288
2021-03-11 23:47:56 +01:00
Thomas Gelf a8d25b70ee Sync: introduce a 'disable' purge action
fixes #2285
2021-03-11 23:00:52 +01:00
Thomas Gelf cd55a65a9c DatafieldTable: modernize formatting 2021-03-01 17:16:07 +01:00
Thomas Gelf f12dac159d DatafieldTable: show category 2021-03-01 17:12:57 +01:00
Thomas Gelf e2a8886148 DirectorObjectForm: deal with "no template"...
...when fetching Choices

fixes #2268
2021-01-21 11:25:23 +01:00
Thomas Gelf 21a284abbc OverriddenVarsResolver: refine api 2021-01-19 01:47:31 +01:00
Thomas Gelf 9889fa9342 DeploymentStatus: do not miss exceptions when...
...talking to Icinga
2021-01-18 17:54:16 +01:00
Thomas Gelf 234e68db31 Lookup: explain various kinds of Services 2021-01-18 17:52:01 +01:00
Thomas Gelf 3325512824 ServiceFinder: new static find() method 2021-01-18 16:03:24 +01:00
Thomas Gelf 6960407825 ServiceInfo: provide requiresOverrides() 2021-01-18 16:03:04 +01:00
Thomas Gelf e4e96206b4 ServiceFinder: replace HostServiceRedirector 2021-01-16 15:04:29 +01:00
Thomas Gelf c4261cb241 Merge branch 'feature/datatype-dictionary-337' 2021-01-15 11:51:52 +01:00
Thomas Gelf 40e1b5a798 DataTypeDictionary: new data type
fixes #337
2021-01-15 11:45:35 +01:00
Thomas Gelf 121dd774c4 IcingaTemplateChoiceForm: allow to require...
...a specific template/import

fixes #1178
2021-01-15 11:20:33 +01:00