992 Commits

Author SHA1 Message Date
raviks789
188fa7aa35
Temporary patch to distinguish instantiable and non instantaible dictionary
Check if the dictionary custom variable is instantiable or not before rendering it
to Icinga Config
2025-08-14 16:51:22 +02:00
raviks789
dfffb224dd
Check for existence of custom variable in the object before storing it 2025-07-10 14:06:10 +02:00
raviks789
565102e63d
Fix: substr deprecation error 2025-07-10 14:06:09 +02:00
raviks789
6d666de23c
Render the host dictionary items as variable in apply-for-rule 2025-07-10 14:06:09 +02:00
raviks789
02a1a882c3
Rename 'config' to 'value' for items array/dictionary in apply-for-rule 2025-07-10 14:06:06 +02:00
raviks789
e0aa1f62fd
IcingaService: Do not attach config to custom variables for apply for rule 2025-05-22 13:00:53 +02:00
raviks789
4c4297ea54
Apply for rule: Configurable for both dictionaries and arrays 2025-05-14 17:29:13 +02:00
raviks789
92790d2ede
WIP: Instantiable dictionary support 2025-05-12 09:47:49 +02:00
raviks789
e4b78b9361
WIP: Alternative custom property support 2025-05-12 09:47:49 +02:00
raviks789
4c283a24c8
Fix: Support data type change of columns ts_last_attempt and ts_last_error from timestamp to bigint 2025-03-25 16:03:30 +01:00
Johannes Meyer
9919b65fc5 DirectorDatafield: Properly cache category in getCategory()
Makes `getCategoryName()` work.
2024-11-19 13:15:34 +01:00
moreamazingnick
fd7babe81e fixes #2393 clusterzone check is not a plugincheck 2024-11-07 15:28:51 +01:00
raviks789
c3fd4118d9 IcingaObjectMultiRelations: Set property modified to false when loaded from DB 2024-11-07 09:45:13 +01:00
raviks789
6291179bcc DirectorDatalist: Match column types to join tables in postgres by explicit type casting 2024-11-07 09:41:27 +01:00
Eric Lippmann
ce64888b81 Fix const visibility 2024-10-22 15:36:03 +02:00
Eric Lippmann
00985429c5 Fix PSR-12 violations 2024-10-22 14:31:14 +02:00
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
Ravi Kumar Kempapura Srinivasa
1b74177d6d Support the rendering of service custom variable in Dependencies form 2024-02-07 11:59:52 +01:00
Sukhwinder Dhillon
d879186f0e Fix wrong method param types and add var type hints 2024-02-05 16:05:24 +01:00
Sukhwinder Dhillon
3fc16910f7 Ini_set() #param 2 must be string (php < 8.1) 2024-02-05 16:05:24 +01:00
Sukhwinder Dhillon
c9e78ba7d5 IcingaObjectLegacyAssignments: Fix incorrect if condition 2024-02-05 16:05:23 +01:00
Sukhwinder Dhillon
bb8076a09d var_export() expects #param 2 to be bool 2024-02-05 16:05:23 +01:00
Thomas Gelf
6e57e6dc98 IcingaObjectGroup: no membership refresh w/o assign
fixes #2784
2024-01-19 12:29:18 +01:00
Christian Schramm
aa31b37fd1 Fix db type error, when hostgroup is accidentially interpreted as integer
fixes #2821
2023-10-19 15:46:52 +02:00
Thomas Gelf
dcf03dc0d5 IcingaArguments: accept DSL
fixes #2811
2023-10-10 13:54:49 +02: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
raviks789
00523d9b35 IcingaTemplateResolver: Remove unused dynamic property $table 2023-09-21 09:00:55 +02:00
Thomas Gelf
fc7bfe7db9 Datalist: fix snapshot diff
fixes #2791
2023-08-25 17:15:08 +02:00
Thomas Gelf
8896e54d69 IcingaArguments: be unmodified when loaded from db
fixes #2660
2023-08-21 12:44:59 +02:00
Thomas Gelf
02d6ebb0af DirectorDatafield: prefer list uuid...
...on basket restore
2023-07-30 20:52:56 +02:00
Thomas Gelf
14604b64d6 GroupMembershipResolver: namespace is useless 2023-07-30 20:45:14 +02:00
Thomas Gelf
d429c9e5cc IcingaObjectGroup: re-enable group membership...
...resolver

refs #2048
2023-07-30 17:31:23 +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
722499ea76 ImportRowModifier: filters, CIDR support
fixes #2756
fixes #2757
2023-05-25 15:44:56 +02:00
Thomas Gelf
fb10bac7e9 Sync: fix loading existing templates
fixes #2217
fixes #2745
2023-05-11 15:07:28 +02:00
Thomas Gelf
48af679cf0 IcingaObjectGroup: membership calculation...
...is now being triggered only when assign_filter exists / has been
changed

fixes #2048
2023-04-21 16:03:58 +02:00
Thomas Gelf
b55df21c21 DirectorDatafield: cleanup, types 2023-03-08 17:03:10 +01:00
Thomas Gelf
915f57db99 DirectorDatafield: ignore uuid and originalId...
...on diff
2023-03-08 14:16:14 +01:00
Thomas Gelf
b7e887b251 schema: add UUIDs for datalist and datafield
fixes #2696
2023-03-07 19:31:55 +01: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
628f24d3d3 SyncRule: alternative setter for properties 2023-03-07 11:49:13 +01:00
Thomas Gelf
5029a30a62 SyncRule: drop obsolete originalId 2023-03-07 11:47:40 +01:00
Thomas Gelf
3893455388 SyncRule: we have a boolean property 2023-03-07 11:45:52 +01:00
Thomas Gelf
637a304f47 IcingaTemplateChoice: fix hasBeenModified...
...this used to be true, once properties have been set
2023-03-07 11:43:41 +01:00
Thomas Gelf
d6bec9bfe1 IcingaObject: cast interval properties to int
They might be strings when shipped from DB or older Baskets
2023-03-07 11:18:24 +01:00
Thomas Gelf
2ade848f4d DbObject: provide boolean properties...
...as IcingaObject did, move convertion logic to DbDataFormatter
2023-03-07 11:16:22 +01:00
Thomas Gelf
881eba7298 IcingaNotification: deal with missing vars 2022-12-28 11:04:13 +01:00
Thomas Gelf
400bf8c0b0 DirectorJob: check for null
Fixes issue with merged PR on PHP 8.1

refs #2680
2022-12-08 13:43:25 +01:00
Christian Maile
4619f8af9b fix wrong type casting 2022-12-08 06:34:19 +01:00