Commit graph

122 commits

Author SHA1 Message Date
raviks789
daf0384e66 Use $isIcingadbPreferred to check if the businessproces preders icingadb as default backend. 2022-02-18 10:06:59 +01:00
raviks789
a5165ef476 Do not set Backend in Metadata to null in case icingadb module doesnot exist. 2022-02-18 10:06:59 +01:00
raviks789
6ebaedccf4 Add moduleInit() method to HostController and ServiceController to check if icingadb is used.
Use moduleInit() to check whether icingadb to be used.
Also use ipl\Stdlib\Filter with $query->filter() instead $query->getSelectBase()->where() in case of icingadb.
2022-02-18 10:06:59 +01:00
raviks789
7b41906881 Select default backend when icingadb is deactivated and the same when monitoring backend is deactivated 2022-02-03 16:56:46 +01:00
raviks789
69e879a745 Make changes to support the case when icingadb is set as the preferred backend. 2022-02-03 16:55:47 +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
Ravi Kumar Kempapura Srinivasa
d1526a36cb Address the comments on IcingaDbState and the Controllers
Address the comments from Eric in the pull request on IcingaDbState, Web/Controller, HostController and ServiceController.
2022-02-03 16:54:01 +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
Kotove
3cd3427e74
Add downtime flag into export results (#286) 2020-10-23 09:22:55 +02: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
Johannes Meyer
0fbb8956e9 node/impact: Don't show colored background for breadcrumbs
There are stateballs now.
2019-02-26 15:06:02 +01:00
Johannes Meyer
d690c07ed8 process/show: Don't show the control separator when in fullscreen or on the dashboard 2019-02-26 08:57:46 +01:00
Johannes Meyer
21980a394f NodeController: Also show impact on imported sub processes 2019-02-25 15:09:34 +01:00
Johannes Meyer
eaf5b85538 Change how imported nodes are recognized
Since configurations are cached this cannot be done by using
a flag. Instead the rendering and path aggregation are now able
to distinguish nodes themselves.
2019-02-25 13:58:18 +01:00
Johannes Meyer
6ae4cf745c RenderedProcessActionBar: Don't allow to unlock imported nodes 2019-02-22 14:41:53 +01:00
Johannes Meyer
673135c0f3 Don't redirect after a successful move action but refresh 2019-02-22 12:26:24 +01:00
Johannes Meyer
ff2274c048 node/impact: Fix that a process' state is not displayed 2019-02-22 12:26:24 +01:00
Johannes Meyer
718a4305b4 NodeController: Show all processes affected by an impact
refs #143
2019-02-22 12:26:24 +01:00
Johannes Meyer
8465bc0bc3 LegacyConfigParser: Establish parent-child relationships
This replaces commit d1f32c5 as this is the more efficient
and proper solution.

refs #134
2019-02-22 12:26:24 +01:00
Johannes Meyer
e0529ee844 Revert "Node: Aggregate parents if none are registered yet"
This reverts commit d1f32c59f1.
2019-02-22 12:26:24 +01:00
Johannes Meyer
195b3bf7b7 ProcessController: Don't unlock the renderer if fullscreen is enabled 2019-02-22 12:26:24 +01:00
Johannes Meyer
f58e1844a1 ActionBar: Remove h1 and adjust link labels 2019-02-22 12:26:24 +01:00
Johannes Meyer
b46a633d6d ProcessController: Provide a new set of parameters when redirecting 2019-02-22 12:26:23 +01:00
Johannes Meyer
c804177ca4 Also save user defined order of processes nodes while in tree view 2019-02-22 12:26:23 +01:00
Johannes Meyer
08bfbc462b Save user defined order of processes/nodes 2019-02-22 12:26:23 +01:00
Johannes Meyer
d1f32c59f1 Node: Aggregate parents if none are registered yet
fixes #134
2019-02-19 11:02:08 +01:00
Johannes Meyer
324a6e898d node/impact: Show message if no impact is detected
fixes #160
2019-02-19 08:45:39 +01:00
Alexander A. Klimov
3985f67fe7 Fix "Host not found" error
refs #147
2019-02-18 13:54:39 +01:00
Johannes Meyer
71fb738016 ProcessController: Properly handle spaces in node names 2019-02-14 14:26:20 +01:00
Johannes Meyer
327cb7c28c Allow to import processes from different configurations 2019-01-17 15:20:25 +01:00
Johannes Meyer
de3e0e5b6c process/config: Preserve display mode when storing changes 2019-01-17 14:57:38 +01:00
Johannes Meyer
19ae300aca lib: Remove all traces of Icinga\Module\Businessprocess\Html
refs #130
2019-01-17 13:21:46 +01:00
Thomas Gelf
8b7311591f Revert "Adjust tile navigation"
This reverts commit 50e18766f6.

refs #192
2018-12-12 16:36:09 +01:00
Eric Lippmann
50e18766f6 Adjust tile navigation
* Left to right tile drill down
* Actions redirect to main
2018-08-15 09:37:43 +02:00
Eric Lippmann
059a59b119 Support exporting to CSV, JSON and PDF 2018-08-01 13:12:08 +02:00
Eric Lippmann
f4a3fcc81b Close action form after successful submission 2018-07-31 12:50:25 +02:00
Jennifer Mourek
87b1d961bc Add functionality to edit node 2018-07-31 12:50:25 +02:00
Markus Frosch
651bb15041 ProcessController: Shorten list of missing nodes in UI 2017-05-31 14:24:17 +02:00
Thomas Gelf
9750e13234 BpNode, process/show: error for missing children...
...and unknown as state

fixes #105
2017-02-20 14:47:30 +01:00
Thomas Gelf
a9db4f9120 ProcessController: superfluous newline 2017-02-20 14:17:00 +01:00
Thomas Gelf
c4242f869b ProcessController: do not show edit forms...
...even if requested

refs #107
2017-02-08 17:56:38 +01:00
Thomas Gelf
e6722d9024 ProcessController: add missing permission checks
refs #107
2017-02-08 17:39:22 +01:00
Thomas Gelf
5cbd46b6e3 Node: return myself in every path
fixes #96
2017-01-27 15:01:48 +01:00
Thomas Gelf
60d043cb18 Simulation: refactor the whole class
First step, more to come. Single node simulations should be moved to a
dedicated class of course

fixes #88
fixes #89
2017-01-26 22:09:38 +01:00
Thomas Gelf
a0a2a59bcd ProcessController: add help title for leaving...
...full screen mode
2017-01-25 10:12:00 +01:00
Thomas Gelf
c221c0becd ProcessController: it's "Business Process"
fixes #85
2017-01-25 09:11:25 +01:00
Thomas Gelf
845cb3462d ProcessController: improve config-related tabs...
...and actions
2017-01-12 09:18:44 +01:00
Thomas Gelf
d87edba377 Just a couple of newlines to satisfy latest PSR2
...checks in phpcs
2017-01-11 23:56:17 +01:00