Commit graph

139 commits

Author SHA1 Message Date
Eric Lippmann
c85b9d98fe Align coding style to comply with latest PSR 2025-12-12 12:44:49 +01:00
Sukhwinder Dhillon
4c2246a7e0 AddNodeForm: Add missing getLabel() call 2024-04-23 15:45:21 +02:00
moreamazingnick
e9a551e581
Fix indistinguishable suggestions for nodes (#433)
refs #427
2024-04-23 15:38:48 +02:00
Sukhwinder Dhillon
c43128be3e
Correct notification messages and add missing translations (#444)
fixes #405
2024-04-22 10:51:06 +02:00
Yonas Habteab
1c6ad874ac Add variable type hint & fix argument type hints 2023-08-24 13:29:11 +02:00
Sukhwinder Dhillon
3643c799d0 SimulationForm: Property $simulatedNode can be nullable 2023-08-24 13:04:29 +02:00
Sukhwinder Dhillon
3fffecca3f DeleteNodeForm: Make property $parentNode nullable 2023-08-24 13:04:29 +02:00
Sukhwinder Dhillon
6306b5306c Define variable type when method returns a class object
- This helps the IDE to find class methods and resolves the `call to an undefined method` issue
2023-08-24 13:04:29 +02:00
Johannes Meyer
890df4be7c Re-introduce class EditNodeForm
Rewritten from scratch. Now with ipl-form compatibility.
2023-08-09 16:13:01 +02:00
Johannes Meyer
1b837c72a3 Drop class EditNodeForm 2023-08-09 16:13:01 +02:00
Johannes Meyer
da4edda2b3 Re-introduce class AddNodeForm
Rewritten from scratch. Now with ipl-form compatibility.
2023-08-09 16:13:01 +02:00
Johannes Meyer
cb83f800b9 Drop class AddNodeForm 2023-08-09 16:13:01 +02:00
Sukhwinder Dhillon
4d7ea853c1 (Cleanup/Move)NodeForm extend BpConfigBaseForm 2023-08-09 10:40:12 +02:00
Sukhwinder Dhillon
1360e1e4a0 Avoid inline css 2023-08-08 11:39:24 +02:00
Johannes Meyer
3fe17336dc Escape semicolons in node names
fixes #312
2023-08-08 08:46:48 +02:00
Johannes Meyer
52c150c56b Use the new Sort trait where applicable
Moves the entire order processing to the renderers as that's
where it's mostly relevant. The only cases where nodes are
still ordered outside the rendering is where changes are
applied based on user input, which happened based on what's
been previously rendered.
2023-08-03 15:19:28 +02:00
Johannes Meyer
8b2bac4e85 MoveNodeForm: Instruct JS to refresh the target container
instead of letting JS refresh it on its own
2023-08-03 15:06:08 +02:00
Johannes Meyer
1ac87cb4ea Let all config forms extend BpConfigBaseForm
They're all too similar.
2023-08-03 15:06:08 +02:00
Sukhwinder Dhillon
174abea6bd Add custom message for form's regex validation 2023-08-03 11:02:34 +02:00
Sukhwinder Dhillon
071f006b7d AddNodeForm: Don't throw error while adding existing invalid config file 2023-08-03 10:57:14 +02:00
Sukhwinder Dhillon
21c1949b07 Introduce CleanupNodeForm action
This helps to clean orphaned (missing) nodes
2023-08-01 15:11:53 +02:00
Sukhwinder Dhillon
2f730cc526 Display node name if alias is missing
This fixes the issue that the name of a missing monitoring node is
not displayed in forms and in Tree/Tile view.
2023-07-24 14:31:17 +02:00
Sukhwinder Dhillon
cbb6b018da
Show node id in edit mode (#382)
ref #308
2023-07-20 13:31:46 +02:00
Sukhwinder Dhillon
be2473864b Introduce new XOR (^) operator 2023-07-13 10:19:08 +02:00
raviks789
da2ed1aef4 Prevent deletion of referenced BP config 2022-09-14 09:58:04 +02:00
Dirk Goetz
0a9409fecc Permissions: add form elements and documentation
Refs #98
Refs #124
2022-03-16 14:10:07 +01:00
Johannes Meyer
711677f903
Merge pull request #277 from Icinga/feature/icingaDb-MySQL-backend-#276
Support Icinga DB
2022-02-18 12:11:56 +01:00
raviks789
e2fa339f99 'Display Name' and 'Description' can be left empty. 2022-02-18 11:46:33 +01:00
raviks789
a7b86f956c Do not show Backend select item when monitoring module is disabled 2022-02-18 11:46:33 +01:00
raviks789
6c2e1cfa0a Remove $backendName property from AddNodeForm and EditNodeForm 2022-02-18 11:46:33 +01:00
Valentina Da Rold
b78983f539 Add Degraded operator implementation
Refs #298
2022-02-18 11:41:06 +01:00
raviks789
605834e7c4 trait cannot be a type for property
Replace the type of properties with type Icinga\Module\Icingadb\Common\Database with type ipl\Sql\Connection.
2022-02-18 10:06:59 +01:00
raviks789
6552ae2004 Use trait Icinga\Module\Icingadb\Common\Database as icingadb backend object 2022-02-18 10:06:59 +01:00
raviks789
1afa7668eb Move enumServiceStateList and enumHostStateList to trait EnumList.
The above methods in AddNodeForm and EditNodeForm is moved to the trait EnumList.
2022-02-03 16:56:46 +01:00
raviks789
407d4f98db Remove enumHostForServiceList, enumHostList, enumServiceList from EditNodeForm.
These methods are present in the trait EnumList and EditNodeForm is already using that trait.
2022-02-03 16:56:46 +01:00
raviks789
3904791438 Cleanup the code
Remove unnecessary comments and unused namespaces.
2022-02-03 16:56:46 +01:00
raviks789
685f44d118 Change class name IcingaDbBackend to IcingaDbObject 2022-02-03 16:55:02 +01:00
raviks789
df72ff65be Move enumHostListByFilter and enumServiceListByFilter to EnumList trait.
Move enumHostListByFilter and enumServiceListByFilter to EnumList trait from AddNodeForm and change fetchServices and fetchHosts
method to work with filters in IcingaDbBackEnd class.
Also, applyMonitoringRestriction is changed to applyIcingaDbRestrictions in IcingaDbBackend.
2022-02-03 16:55:02 +01:00
Sukhwinder Dhillon
afff0bea34 BpConfigBaseForm: Fix backend change
Do not use the previously saved backend if the value has been
changed to `Use the configured default backend` (null)
2022-02-03 16:55:02 +01:00
Ravi Kumar Kempapura Srinivasa
efcea15ab6 Clean the scripts and resolve the comments
Clean the scripts to pass the phpcodesniffer tests and resolve the comments provided by Eric.
2022-02-03 16:54:01 +01:00
Ravi Kumar Kempapura Srinivasa
1a0ddfb08b Add IcingaDB MySQL backend in businessprocess
IcingaDB MySQL backend is added to the businessprocess module to obtain information regarding monitored nodes.

ref #276
2022-02-03 16:54:01 +01:00
Johannes Meyer
0c3cf6b7bd Avoid passing non-string args to ctype_*() functions 2022-01-14 10:46:08 +01:00
ValeDaRold
3154e3313f
Add new Host from Filter and Service from Filter in AddNodeForm.php (#300)
refs #295
2021-08-06 11:43:09 +02:00
Johannes Meyer
1cc9187e0a state_overrides: Also fully support hosts 2020-07-01 08:54:34 +02:00
Johannes Meyer
49ebbc4cdb Apply state overrides on demand instead of directly
Internally non-process children are only instantiated once.
This means when applying state overrides directly they're
used everywhere and do not differ between the containing
process. State overrides are now applied explicitly and
on demand, decoupling them from children.
2020-07-01 08:54:34 +02:00
Johannes Meyer
0c7fca926f config: Use an extra line to store state overrides
Storing overrides as part of a node's name leads to way too complicated
code. A separate field is not only better for compatibility but also
more straightforward to process.
2020-06-26 14:08:05 +02:00
Christian Menapace
98b6b2c6d0 Add Service Override 2020-06-26 11:32:09 +02:00
Johannes Meyer
144bcdf852 Remove space after reference operators 2020-02-26 09:19:31 +01:00
Johannes Meyer
f13145f43b BpUploadForm: Properly adjust the success url 2019-11-04 16:08:28 +01:00
Johannes Meyer
dc69522ae5 ProcessForm: Properly populate element display 2019-03-01 08:20:48 +01:00