Commit graph

553 commits

Author SHA1 Message Date
Johannes Meyer
64eb2a7f68 BaseTestCase: Use Icinga Web's base test case 2023-08-09 14:29:41 +02:00
Johannes Meyer
1d08c954ba IcingaDbState: Fix postgres support
-.-
2023-08-09 14:10:37 +02:00
Johannes Meyer
ffab7edcb3 IcingaDbState: Apply state data from redis 2023-08-09 10:53:40 +02:00
Johannes Meyer
78ad4491d2 IcingaDbState: Optimize queries
There's no need to fetch more data than required.
And issuing count queries only for benchmarks.. -.-
Also bypasses ipl-orm to fetch results now.

fixes #343
2023-08-09 10:22:10 +02:00
Sukhwinder Dhillon
af4b98faeb Use fontawesome icons with ipl\Web\Widget\Icon class everywhere 2023-08-08 12:24:29 +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
c3d09fd601 Introduce Icinga\Module\Businessprocess\Common\Sort 2023-08-03 15:06:08 +02:00
Johannes Meyer
96f94f9959 Controller: Extend ipl\Web\Compat\CompatController 2023-08-03 15:06:08 +02:00
Johannes Meyer
926ac14bd9 css: Apply form specific rules only to form.bp-form 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
raviks789
654ba0474d
Show Ack icon in tree view for nodes with both downtime and acknowledgement (#352)
Acknowledgement takes priority in handled nodes and hence it is
sufficient to show acknowledged icons in case the handled node has an
acknowledgement and also a downtime is scheduled for it.
2023-08-03 15:01:48 +02:00
raviks789
4a3b3e3657 Show Ack/Downtime icons in the node tiles for the handled nodes
In case the hosts/services are acknowleded or have scheduled downtime show Acknowledeged or
Downtime icons respectively.
2023-08-03 14:53:08 +02:00
Sukhwinder Dhillon
da0c72d578 DashboardAction: Use ipl-web's icon 2023-08-03 10:57:14 +02:00
Sukhwinder Dhillon
6b4a3cbc0c Do not break overview page if existing business-process has invalid config
- Add icon and config file name to broken `business-process`
- Use font-awesome icon
2023-08-03 10:57:14 +02:00
Sukhwinder Dhillon
1aba349be5 NodeRemoveAction: Remove stateoverrides of node while removing node 2023-08-01 11:14:18 +02:00
Johannes Meyer
c2e06aca0a TreeRenderer: Use Icinga Web's collapsible implementation now
resolves #254
2023-07-24 15:57:06 +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
5b4056e1b2 ServiceNode: getAlias() returns null if host or service alias is null 2023-07-24 14:31:17 +02:00
Sukhwinder Dhillon
83194e4942 Drop support for external_info and extra_info flag 2023-07-19 13:34:39 +02:00
Sukhwinder Dhillon
be2473864b Introduce new XOR (^) operator 2023-07-13 10:19:08 +02:00
Sukhwinder Dhillon
77075d5c64 Don't show process id if display name exists 2023-07-12 11:54:36 +02:00
Sukhwinder Dhillon
ecdd51b6a0 LegacyConfigParser: Ignore empty lines in parseHeaderLine()
- Otherwise the index 0 of the empty line in elseif cannot be checked, which leads to an error
2023-07-12 11:26:14 +02:00
Sukhwinder Dhillon
4143019412 IcingaDbState: last_state_change is now a DateTime Obj
ref https://github.com/Icinga/icingadb-web/pull/753
2023-06-06 15:07:04 +02:00
raviks789
da2ed1aef4 Prevent deletion of referenced BP config 2022-09-14 09:58:04 +02:00
raviks789
3a7dc64a50
Fix storing of business process with Description having new lines (#339)
* Fix storing of business process with `Description` having new lines

The `LegacyConfigRenderer::renderHeader()` should render new lines in the `Description` field as comments.

This fix avoids occurrence of future issues due to new lines in `Description` field while adding or modifying the
business processes.

* Parse new lines in header

The new lines in header which may belong to the field like `Description` must be parsed correctly.
2022-09-14 09:53:54 +02:00
raviks789
bd2cb52292 Show critical count badge in left menu
The critical count badge of `Business Process` menu section represent number configs that are in critical state.
The critical count badge of configs sub section under represent number of critical root nodes of that specific config.
2022-09-14 09:53:11 +02:00
raviks789
4ca8c72a05 Show service and host nodes for filtered roles
The service and host nodes must be shown, but clicking on these nodes should show
"Access Denied" page.
2022-09-14 09:52:23 +02:00
raviks789
b24600893a Apply the filter for host names when 'Hosts from filter' option is selected 2022-09-14 09:51:31 +02:00
raviks789
ce812c01bf Fix deletion of all occurences of a node
In case the node is not a BP node, we simply have to remove all occurences of the node.
2022-07-28 12:35:45 +02:00
raviks789
731541e667 Fix BP node in case it has pending-handled child node
Increment `PENDING` state summary counter of the BP node in case there are `PENDING-HANDLED` child/children node/s.
2022-07-27 09:23:45 +02:00
Johannes Meyer
d34da32f28 Make sure to expect ITL compatible custom var names 2022-07-21 16:01:37 +02:00
Johannes Meyer
b8de4580da Add detail integration for Icinga DB Web 2022-07-20 11:22:41 +02:00
Johannes Meyer
b2bc6b852e Enhance DetailViewExtension
* The checkcommand name can now be configured
* The variable names are shortened
* The config and process variables are now separate
2022-07-19 16:19:07 +02:00
Johannes Meyer
36f97c7a23 TreeRenderer: Override assemble instead of render 2022-07-19 15:03:13 +02:00
Johannes Meyer
7acfac8947 TileRenderer: Override assemble instead of render 2022-07-19 15:03:13 +02:00
Johannes Meyer
f62364b772 Monitoring/DetailViewExtension: Update implementation 2022-07-19 15:03:13 +02:00
Johannes Meyer
fde37a35c6 Rename hook 2022-07-19 14:07:35 +02:00
Matthias
bc54d59146 Added Grapher 2022-07-19 14:03:37 +02:00
Johannes Meyer
be0aa5d6f4 IcingaDbState: Use multiple calls of Query::with()
The possibility to pass an array will soon be dropped.
2022-05-23 14:13:54 +02:00
moreamazingnick
0b392762f9 fix/state-can-be-empty-#325 2022-04-06 16:28:02 +02:00
Johannes Meyer
6d3146f57a Revert "Merge pull request #320 from Icinga/re-add-php-diff-lib"
This reverts commit 9e9bcb578d, reversing
changes made to 5ccc13c862.
2022-03-24 14:54:03 +01:00
Johannes Meyer
85b8f770ab Controller: Properly handle view compact requests 2022-03-16 13:41:05 +01:00
Johannes Meyer
8af64d2e83 Add phpspec/php-diff in version 1.1.3 2022-03-15 11:24:33 +01:00
Johannes Meyer
96b28708af Revert "ConfigDiff: Utilize new php-diff library"
This reverts commit dde924e2b4.
2022-03-15 11:24:33 +01:00
Florian Strohmaier
d325844b90 BPNode: Ignore node children states in state badges 2022-03-10 12:02:03 +01:00
Florian Strohmaier
2d299f73b9 Renderer: specify total number of nodes with "Node" 2022-03-10 12:02:03 +01:00
Florian Strohmaier
595c4a5cb3 Renderer: Do not display ok/up nodes 2022-03-04 14:23:33 +01:00
Johannes Meyer
3fcc6dd105 Use class ìpl\Web\Widget\StateBadge 2022-03-04 14:21:48 +01:00