Commit graph

893 commits

Author SHA1 Message Date
Johannes Meyer
0f8c90fbf4 php: Utilize shivammathur/setup-php@v2 2020-11-17 16:41:38 +01:00
Kotove
3cd3427e74
Add downtime flag into export results (#286) 2020-10-23 09:22:55 +02:00
Johannes Meyer
0ce7f2460f README.md: Include state override chapter 2020-07-01 09:06:03 +02:00
Johannes Meyer
89c50a036d
Merge pull request #232 from cmenapace/feature/overwrite-service-state
Add state overrides
2020-07-01 09:02:27 +02:00
Johannes Meyer
1cc9187e0a state_overrides: Also fully support hosts 2020-07-01 08:54:34 +02:00
Johannes Meyer
ec54b6df57 doc: Add chapter for state overrides 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
a8149a1983 ui: Use rule widget to show real state transformation instead
Showing the override rules only in tree view but not in tile
view is one problem. Another one however are rules for all
states which then are difficult to decipher while not providing
much benefit.

The flash to indicate the real state also is not intuitive enough.

That's why this change combines both widgets in a single one. This
makes it more clear what the actual state is, what happened to it,
and does not cobble the view with too much state balls.
2020-06-26 14:11:40 +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
8f868d79c9 NoDuplicateChildrenValidator: Don't detect a no-change as duplicate 2020-06-26 11:20:14 +02:00
Johannes Meyer
67a7687606 NodeAction: Force parsing objects as associative arrays during unserialization 2020-06-26 11:18:28 +02:00
Eric Lippmann
a9faf8a9ac
Merge pull request #283 from bobapple/update-docs-image
Fix newline issue of screenshots of docs/about page
2020-06-09 09:28:11 +02:00
Blerim Sheqa
33c880a93a Fix newline issue of screenshots of docs/about page
Adding multiple screenshots works on GitHub but is not suitable
for the rendered version of the docs. The images are too small
and newlines are added because of lacking space.

I changed that by including a single dashboard image.
2020-05-29 15:25:52 +02:00
Eric Lippmann
094f48db91
Doc: Fix operator 2020-05-29 12:05:06 +02:00
Johannes Meyer
e2f792e69a ci: Let the icingabot trigger L10n updates 2020-05-27 09:19:12 +02:00
Eric Lippmann
346ace79d0
Merge pull request #282 from Icinga/fix/handled-node-rendering
Fix rendering of state-balls for critical-handled nodes
2020-05-27 08:25:47 +02:00
Eric Lippmann
5037d8fea0
Merge pull request #280 from Icinga/fix/delete-node-rendering
Fix tile rendering for Bp nodes with unconfirmed deleted monitored nodes
2020-05-27 08:24:51 +02:00
Eric Lippmann
e0dffd34a0 Raise version to 2.3.0 2020-05-27 08:24:30 +02:00
Ravi Kumar Kempapura Srinivasa
49bc0dd363 Use the correct state-balls for critical/down-handled nodes in TreeRenderer::render()
Use the state-balls that are added for critical/down-handled nodes in TreeRenderer::render(), in case the nodes are critical/down and handled.
2020-05-27 08:23:41 +02:00
Ravi Kumar Kempapura Srinivasa
b3686906a5 Use the correct state-balls for critical/down-handled nodes in NodeTile::render()
Use the state-balls that are added for critical/down-handled nodes in NodeTile::render(), in case the nodes are critical/down and handled.
2020-05-27 08:23:16 +02:00
Ravi Kumar Kempapura Srinivasa
aaba2fb884 Introduce state-balls for critical/down-handled nodes
Earlier we did not have different state-balls for critical/down-handled nodes. They were assigned critical/down state-balls. Now, we are introducing new state-balls for these nodes.
2020-05-27 08:22:27 +02:00
Ravi Kumar Kempapura Srinivasa
b39d953fee Fix tile rendering for Bp nodes with unconfirmed deleted monitored nodes
Earlier in NodeRemoveAction the states were recalculated for the BpNodes. Hence, the state for parent nodes with unconfirmed deleted monitored nodes (host/service) is set to Unknown. This results in incorrect tile rendering for the parent nodes. Therefore, any call to methods which recalculate the states are removed.

fix #279
2020-05-19 16:42:09 +02:00
Eric Lippmann
a212d6ea5e
Merge pull request #272 from Icinga/fix/emptyNode-count1-#225
Fix problems with empty nodes
2020-05-14 10:29:55 +02:00
Eric Lippmann
6b5afa63c8
Merge pull request #274 from Icinga/unify-documentation
Update docs for operators and about section
2020-05-14 09:55:45 +02:00
Niko Martini
c22d4b648a Document operators
Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2020-05-11 14:29:29 +02:00
Eric Lippmann
e50ba76e35 doc: Remove outdated files 2020-05-11 14:28:15 +02:00
Eric Lippmann
1778519ad7 doc: Introduce about section 2020-05-11 14:26:54 +02:00
Eric Lippmann
eca9f779a9 doc: Move chapters 2020-05-11 14:26:36 +02:00
Ravi Kumar Kempapura Srinivasa
1bc6bf6236 Use gray tiles and state-balls for the entire branch of empty BpNode
The node state is recursively calculated in case the node contains only BpNodes as its children and are empty. The gray tiles and state-balls are used for the entire branch if the children are empty.
2020-05-11 11:45:33 +02:00
Ravi Kumar Kempapura Srinivasa
6cc5eb8e74 Check recursively for Empty BpNodes
In BpNode::recalculateState() the BpNode needs to be recursively checked if its children is empty using BpNode::isEmpty() instead of BpNode::hasChildren().
2020-05-11 11:45:27 +02:00
Ravi Kumar Kempapura Srinivasa
e19612bd4a Extend abstract isEmpty() method to check for empty nodes in child nodes
We need to check recurively whether the BP Nodes contatin only child BpNodes which are empty and set the entire tree to state NODE_EMPTY state in this case.
2020-05-11 11:45:17 +02:00
Ravi Kumar Kempapura Srinivasa
51c7fdf6c9 Fix 'Trying to access a missing business process node <$name>'
If the imported node is empty or was deleted at a later time, then in NodeTile::render() $link should not be rendered. Also, NodeTile::addDetailsAction() should not add a `href` to this tile.
2020-05-11 11:45:05 +02:00
Ravi Kumar Kempapura Srinivasa
d8567896f2 Fix 'missing node' errors for empty child nodes
Before the child empty nodes where set to missing nodes by BpNode::isMissing().

This has been corrected in this fix by checking if whether a child node is an empty node or not.
2020-05-11 11:44:55 +02:00
Ravi Kumar Kempapura Srinivasa
233e9758fa Show gray tiles and gray state badges for empty states
New tiles and state badges that are of color gray is introduced for empty nodes.
2020-05-11 11:44:50 +02:00
Ravi Kumar Kempapura Srinivasa
7de814a4af Set state to NODE_EMPTY in case of empty nodes
In case of empty nodes, the state is set to NODE_EMPTY now.
2020-05-11 11:44:41 +02:00
Ravi Kumar Kempapura Srinivasa
e533ff95f5 Introduce NODE_EMPTY state for empty nodes
An empty node state called `NODE_EMPTY` has been introduced with a value of 128 in class `Node`, and this state has been mapped to value *0* in structure `$stateToSortStateMap`.
2020-05-11 11:44:30 +02:00
Ravi Kumar Kempapura Srinivasa
32abce2529 Don't show state-badges for empty nodes
Before, the empty nodes were to be considered as missing nodes. Correspondingly, the counter for missing in BpNode::getStateSummary() was increased if an empty node is encountered.

Now, the empty nodes are not assumed as missing nodes and the counter for missing is not increased for this case.
2020-05-11 11:44:14 +02:00
Johannes Meyer
0892d1e90b Add L10n-update workflow 2020-04-30 11:19:42 +02:00
Johannes Meyer
6c4b75acb7
Merge pull request #273 from Icinga/fix/php74-compat
Fix PHP 7.4 compatibility
2020-02-27 13:25:50 +01:00
Johannes Meyer
d2d64365b6 php-diff: Don't use curly braces for string offset access 2020-02-27 10:41:54 +01:00
Eric Lippmann
a06fba34b3 Remove abstract function Node::__construct() 2020-02-27 10:08:16 +01:00
[.::MDT::.]
df29918a75 Update 81-History.md
fix typo
2020-02-26 15:10:20 +01:00
Ravi Kumar Kempapura Srinivasa
f5166f4348 Fix 'vsprintf(): Too few arguments' unexisting imported node exception
If the imported node does not exist, no arguments is  passed to BpConfig::addError() by ImportedNode::createFailedNode(). Added 'if' condition in BpConfig::addError() in case no arguments are passed to vsprintf.

refs #234
2020-02-26 15:09:17 +01:00
Ravi Kumar Kempapura Srinivasa
1278480b6e Fix 'vsprintf(): Too few arguments' in ProcessController::showAction()
Before, we called printf twice because BpConfig::addError()
already makes use of printf. The exception only occured for
nodes that have a percent sign (%) in their name.

fixes #234
2020-02-26 15:09:17 +01:00
mdkamijo
3ffbce0709
Make it possible to delete imported nodes (#248)
It is possible to import process nodes from other processes. But there
are no way, via the GUI, to remove the imported process nodes from the
current process/process node.
This commit makes it possible to remove imported process nodes, no matter
where which process they comes from.
2020-02-26 14:53:34 +01:00
Eric Lippmann
5395b42bab Fix URL param overrides upon rendering
Before, we used setParams() instead of with() to populate the parameters
which is especially problematic with imported nodes where the config
paramter got overriden for every subsequent node.

fixes #228
2020-02-26 14:18:40 +01:00
Eric Lippmann
125bf37ba8 Fix superfluous base target overrides
* Fix drill down of the tile/tree action icon links
* Set base target only on parent containers

This also fixes the dashboard integration where we only override the
base target of the div.tiles containers.

fixes #243
2020-02-26 14:17:39 +01:00
Johannes Meyer
4e6e1f0819 Node: Add __unbound__ parent node in getPaths() if there are no parents
fixes #245
2020-02-26 13:47:24 +01:00
Johannes Meyer
3772950f6e
Merge pull request #262 from Icinga/bugfix/grey-out-triangles-242
Add animations for breadcrumbs on impact
2020-02-26 13:14:36 +01:00