Sukhwinder Dhillon
be6447874c
Remove not in use class `ReadOnlyFormAvpTable`
2024-01-19 15:17:41 +01:00
Sukhwinder Dhillon
c25a66b484
Avoid inline css style
2024-01-19 15:17:41 +01:00
Thomas Gelf
6e57e6dc98
IcingaObjectGroup: no membership refresh w/o assign
...
fixes #2784
2024-01-19 12:29:18 +01:00
raviks789
0ea0a8fd83
Fix zone creation and deletion for tests
2024-01-16 15:27:27 +01:00
Johannes Meyer
58e2a8fca6
Change parent class of BaseTestCase to `\Icinga\Test\BaseTestCase`
2024-01-16 14:33:49 +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
a850ff13d7
IcingadbBackend: Remove isAvailable method and property
...
As it is only used internally now, it is no more required
2024-01-16 10:27:10 +01:00
Sukhwinder Dhillon
2461724271
IcingadbBackend: Drop icingadb restriction check and only check for director restrictions
...
Monitoring does the same.
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
d30a56a385
Fix phpcs issues
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
4ef7f5664a
ActionController::backend(): Add condition to check which backend should be used
...
- If both are available
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
f52d05de31
IcingadbBackend: Apply director restrictions properly
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
26f8769d28
Icingadb (Host/Service)Actions: Fix permissions and code style
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
a272b0d242
Introduce icingadb permissions/restrictions
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
eeaf87741a
IcingadbBackend: Always check if module is available
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
677f5dc72a
Monitoring/IcingadbBackend: Handle if $hostName or $serviceName is null
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
956cce84cb
Cleanup code
...
- Remove superfluous methods/usages
- Simplify the code
2024-01-16 09:51:44 +01:00
Sukhwinder Dhillon
8ea8a62ef4
BackendInterface: Add phpDocs
2024-01-15 16:25:05 +01:00
Sukhwinder Dhillon
604667ca65
Relocate Backend classes
2024-01-15 16:25:02 +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
Sukhwinder Dhillon
89134e0366
Remove obsolate class `Backend` and its usages
...
- Create the backend directly in ActionController::backend()
- Simplify the code
2024-01-15 16:24:25 +01:00
Tobias Tiederle
b28b36f815
move classes into subfolder
...
fix some problems and mark TODO
2023-12-04 10:12:54 +01:00
Tobias Tiederle
1c6090193d
add support for icingadb as only icingaweb2 data backend
2023-12-04 10:12:54 +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
fb1a23fb01
ObjectsTableSetMembers: fix uuid in link
2023-10-12 19:56:25 +02:00
Thomas Gelf
7267953e13
TemplateUsageTable: pass auth to constructor
2023-10-12 08:45:12 +02:00
Thomas Gelf
a2abbd326b
TemplateController: pass auth
2023-10-12 08:43:58 +02:00
Thomas Gelf
48db90c7df
ObjectsTable: require Auth
...
fixes #2808
2023-10-11 12:24:36 +02:00
Thomas Gelf
6178265a12
HostgroupRestriction: pass fitting table alias
...
fixes #2164
fixes #2809
2023-10-11 11:37:21 +02:00
Thomas Gelf
d02e430008
Sync: conditional membership sync
...
fixes #2812
2023-10-11 10:01:14 +02:00
Thomas Gelf
dcf03dc0d5
IcingaArguments: accept DSL
...
fixes #2811
2023-10-10 13:54:49 +02:00
Thomas Gelf
742013673e
PropertyModifierJsonDecode: explicitly fail for...
...
...non-string inputs
fixes #2810
2023-10-10 11:11:23 +02:00
raviks789
76509bb7c8
IcingaServiceSetServiceTable: Change table alias for director branches
2023-09-22 13:44:09 +02:00
raviks789
ca855c6ee7
TemplateUsageTable: Fix indrect object count
...
fixes #2806
2023-09-22 13:16:33 +02:00
Thomas Gelf
7c2a3f254b
ObjectSetTable: fix on pgsql
2023-09-21 16:02:07 +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
63a3e6a1ec
Fix editing of multi-selected services with same name
...
Since the object names function as keys for the multi-selected objects array, this becomes a problem when
multiple services as the same name. Hence for the services the array keys must be a combination of service name
and the host name to which the service is related.
2023-09-21 14:59:42 +02:00
raviks789
dcd36877ea
Make `TemplateUsageTable`s and other tables compatible with `director branches`
...
`TemplateUsageTable`, `ApplyRulesTable`, `ObjectsTableSetmembers` and `TemplatesTable` are
made compatible with `director branches`.
2023-09-21 14:57:30 +02:00
raviks789
3c7082cabc
Modify `IcingaObjectFilterHelper::filterByTemplate` for director branches
...
Icinga objects must be filterable based on templates when a director branch is active.
2023-09-21 14:57:30 +02:00
raviks789
e6f7d82c09
Add a `imports` column to the objects
...
The host or service objects require retrieve the imports column. This
makes it possible to filter them based on templates when a director
branch is active.
2023-09-21 14:57:30 +02:00
Ravi Kumar Kempapura Srinivasa
939f805378
Add `setmembers` summyary line to TemplateUsageTable
...
`'setmembers' => $this->getSummaryLine('object', 'o.service_set_id IS NOT NULL AND o.host_id IS NOT NULL'),` is added to TemplateUsageTable
and `objects` is set to ` $this->getSummaryLine('object', 'o.service_set_id IS NULL')`. Subsequently, ObjectTableSetMembers
is added which is used in `setmembersAction` in `TemplateController`. `ObjectTableSetMembers` uses service set name or service name
as search columns.
2023-09-21 14:57:30 +02:00
Thomas Gelf
3199eb627b
FormFieldSuggestion: fix wording
2023-09-21 13:01:10 +02:00
raviks789
228cbc8376
`Dashboard`: Suppress covariance error of `count()` method
2023-09-21 09:00:55 +02:00
raviks789
9cc04eb5c6
`StartupLogRenderer`: Use correct syntax to write to array `$lines`
2023-09-21 09:00:55 +02:00
raviks789
fcaa97e1b2
Remove dead class `SingleObjectApiHandler`
2023-09-21 09:00:55 +02:00
raviks789
dec1951774
`CustomVariableCache`: Remove redundant destructor
...
Property `$db` is not declared for it to be unset
2023-09-21 09:00:55 +02:00
raviks789
98f6768dcb
Declare properties that are dynamically used
...
Dynamic properties are deprecated since PHP 8.2.
2023-09-21 09:00:55 +02:00
raviks789
00523d9b35
`IcingaTemplateResolver`: Remove unused dynamic property `$table`
2023-09-21 09:00:55 +02:00
Johannes Meyer
629297116b
BaseTestCase: Use phpunit's new TestCase
2023-08-30 17:28:06 +02:00