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
raviks789
d4bd45233b
Remove unnecessary checks to check if backend name is '_icingadb'.
...
Instead use (! $bp->hasBackendName()) check with 'And' condition.
2022-02-18 11:46:22 +01:00
Valentina Da Rold
b78983f539
Add Degraded operator implementation
...
Refs #298
2022-02-18 11:41:06 +01:00
raviks789
daf0384e66
Use $isIcingadbPreferred to check if the businessproces preders icingadb as default backend.
2022-02-18 10:06:59 +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
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
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
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
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
5d905426b6
Use IcingaDbState for nodes from IcingaDb MySQL backend in ProcessCommand
...
Since we have included monitored nodes from IcingaDB MySQL backend, the states for these nodes will be now calculated using IcingaDbState::apply.
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
Johannes Meyer
a04059b6c1
ProcessCommand: Require a node name explicitly
2022-01-24 12:35:41 +01:00
Johannes Meyer
0c3cf6b7bd
Avoid passing non-string args to ctype_*() functions
2022-01-14 10:46:08 +01:00
Johannes Meyer
f96abb4627
Drop locales
2021-12-17 13:56:14 +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
Kotove
3cd3427e74
Add downtime flag into export results ( #286 )
2020-10-23 09:22:55 +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
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
9835dc9c03
Merge pull request #264 from Icinga/fix/check-command-handling-256
...
ProcessCommand: handle errors as UNKNOWN
2020-02-26 12:02:08 +01:00
Johannes Meyer
cb1cd24bfe
de_DE: Avoid anglicisms
...
resolves #257
2020-02-26 12:00:15 +01:00
Yonas Habteab
1397c8a7af
ProcessCommand:handle some other errors as UNKONWN
...
fixes #256
2020-02-26 10:23:30 +01:00
Johannes Meyer
144bcdf852
Remove space after reference operators
2020-02-26 09:19:31 +01:00
Yonas Habteab
09cb5ef6fe
ProcessCommand: handle error as UNKNOWN
...
fixes #256
2020-02-25 16:04:40 +01:00
Dominik Seidel
8ef1dfcbdc
CLI: Add options --downtime-is-ok and --ack-is-ok
2020-02-05 15:01:22 +01:00
Dominik Seidel
1414e76d94
CLI: Add options --blame and --root-cause
2020-02-05 15:01:22 +01:00
Johannes Meyer
f13145f43b
BpUploadForm: Properly adjust the success url
2019-11-04 16:08:28 +01:00
Johannes Meyer
61dc23fa10
locale: Update german translation
2019-03-01 12:43:16 +01:00
Johannes Meyer
dc69522ae5
ProcessForm: Properly populate element display
2019-03-01 08:20:48 +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
40538c51ce
LegacyStorage: Add cache to avoid parsing configurations multiple times
2019-02-25 12:42:52 +01:00
Johannes Meyer
6ae4cf745c
RenderedProcessActionBar: Don't allow to unlock imported nodes
2019-02-22 14:41:53 +01:00