1665 Commits

Author SHA1 Message Date
raviks789
11a10be9f8
DeployFormsBug7530: Do not pass null values to strlen
Since PHP 8.0 passing of null to strlen is deprecated and hence must be avoided.
2025-04-23 15:55:31 +02:00
Ravi Kumar Kempapura Srinivasa
a99a998540
Merge commit from fork
Apply relevant restrictions on REST url endpoints
2025-03-26 11:19:54 +01:00
raviks789
5f4ad0f827 IcingaAddServiceForm: Check if service templates exist to add services 2025-03-25 16:01:29 +01:00
raviks789
b18cf4f80d Fix editing of custom variables for multi-selected objects 2025-03-25 15:56:11 +01:00
raviks789
3fcb20178f
Apply correct restrictions to REST url endpoints
The following url end points should apply relevant restrictions to filter out objects and show correct HTTP status code:
- icingaweb2/director/service, if the host name is left out of the query (Example: icingaweb2/director/service?name=service-name)
- icingaweb2/directore/notification
- icingaweb2/director/serviceset
- icingaweb2/director/scheduled-downtime
2025-01-24 12:21:41 +01:00
raviks789
8161a769fe IcingaHostForm: Fix crashing of form for invalid check command 2024-12-12 13:11:51 +01:00
raviks789
f4692d7ab4 ImportRowModifierForm: Fix removal of filter expression 2024-12-12 10:45:23 +01:00
raviks789
6c766dff43 Allow cloning service sets in Director Branches 2024-11-19 13:34:14 +01:00
André Nähring
1835661850 Add hasBasketSupport for TimePeriods 2024-11-07 13:16:38 +01:00
raviks789
9d186638cd IcingaCloneObjectForm: Fix cloning of hots in director branches
The cloned host must also have services and service sets that are under the original host.
2024-11-07 11:32:36 +01:00
raviks789
5298c8ee5d IcingaMultiEditForm: Fix editing custom vars with space in their name 2024-11-07 11:21:46 +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
48ea3e46f9 IcingaDependencyForm: Make parent host and parent service element values removeable 2024-02-07 11:59:54 +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
bb8076a09d var_export() expects #param 2 to be bool 2024-02-05 16:05:23 +01:00
Sukhwinder Dhillon
9f58dcf8d9 phpstan: Strict check function/class name-case and fix violations 2024-02-05 16:05:23 +01:00
Sukhwinder Dhillon
28d8f0e7d1 ImportsourceController: Remove unnecessary inline js for collapse 2024-01-19 15:17:41 +01:00
Sukhwinder Dhillon
c25a66b484 Avoid inline css style 2024-01-19 15:17:41 +01:00
Sukhwinder Dhillon
72f44c326f Remove unnecessary and unused code 2024-01-19 15:17:41 +01:00
Sukhwinder Dhillon
708b4dbe8f Remove unnecessary inline style 2024-01-19 15:17:41 +01:00
raviks789
c0e870d543 Fix form field suggestions
Other available fields should be suggested when no check command has been
chosen for service template.
2024-01-16 12:38:19 +01:00
Sukhwinder Dhillon
d30a56a385 Fix phpcs issues 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
d26a619577 ServiceController: Use given properties to get host/service name 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
8a489bcc46 HostController: Move ServiceFinder::getRedirectionUrl() method code to findserviceAction()
- This helps to detect backend easily, and was only called in this method anyway.
- Add and use helping method getServicesReadOnlyPermission()
-
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
4e6528e862 ServiceController: Remove redudant if condition 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
db7181c29e Backend: Remove unnecessary calls to isAvailable() 2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
9baa3c4341 Remove redudant class MonitorBackendMonitoring and adjuct code accordigly
- Use class `Monitoring` instead
- Remove not in use methods from `MonitorBackend` interface and from classes that implements this interface
- Add param types and return type hint to methods
2024-01-15 16:24:27 +01:00
Tobias Tiederle
1c6090193d add support for icingadb as only icingaweb2 data backend 2023-12-04 10:12:54 +01:00
Thomas Gelf
48db90c7df ObjectsTable: require Auth
fixes #2808
2023-10-11 12:24:36 +02:00
julian-smithies
70e1aef111 Provide explanation for all exit codes 2023-10-10 11:39:10 +02:00
raviks789
9e332b4022 Remove limit count for service set directly added to the host 2023-09-21 14:37:03 +02:00
Thomas Gelf
53323ad861 de_DE: compile translation 2023-09-21 13:01:10 +02:00
Thomas Gelf
0c33c5d6bc IcingaNotificationForm: just a dot 2023-09-21 13:01:10 +02:00
Thomas Gelf
bfa72ee892 de_DE: use relative paths 2023-09-21 13:01:10 +02:00
Thomas Gelf
dbd1ed249a de_DE: refresh translation 2023-09-21 13:01:10 +02:00
Johannes Meyer
37c8056689 Fix phpcs errors 2023-08-30 17:28:06 +02:00
Thomas Gelf
5298243d94 SyncruleController: fix typo
fixes #2613
2023-08-25 11:00:39 +02:00
Thomas Gelf
907d93ebe9 FormFieldSuggestion: propose macros from set_if
fixes #514
2023-08-20 13:11:19 +02:00
Thomas Gelf
7aa7f51929 IcingaObjectFieldForm: move back getFilterFields() 2023-08-20 13:11:12 +02:00
Thomas Gelf
d97bbc0526 FormFieldSuggestion: refactor, dedicated class 2023-08-20 13:11:02 +02:00
Thomas Gelf
62f59d4c5a DirectorDatafieldForm: fix typo, translate 2023-08-20 13:10:52 +02:00
Lorenz Kästle
71b311e258 Add missing time unit in translation 2023-08-11 08:36:33 +02:00
moreamazingnick
f3455c197d Fix duplicate service sets on clone service
fixes #2671
2023-07-31 08:33:46 +02:00
Thomas Gelf
8cbde4a50e IcingaServiceForm: getFirstParent() prepared to...
...be moved elsewhere
2023-07-30 17:27:02 +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
8e60e0aab9 HostController: relax assertion 2023-06-13 17:39:15 +02:00
Thomas Gelf
83f9c00e9b ImportRowModifierForm: description readability 2023-05-31 07:18:51 +02:00
Thomas Gelf
722499ea76 ImportRowModifier: filters, CIDR support
fixes #2756
fixes #2757
2023-05-25 15:44:56 +02:00