Commit graph

39 commits

Author SHA1 Message Date
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
3904791438 Cleanup the code
Remove unnecessary comments and unused namespaces.
2022-02-03 16:56:46 +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
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
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
431a5e0085 Streamline usage of a node's name 2019-02-22 12:26:24 +01:00
Johannes Meyer
7a8c48c7e8 Fix a few style issues 2019-02-22 12:26:24 +01:00
Johannes Meyer
bc03569765 Properly handle display values when performing other actions than moving nodes 2019-02-22 12:26:24 +01:00
Johannes Meyer
876a577e85 Don't sort processes in case manual sorting has been applied 2019-02-22 12:26:23 +01:00
Johannes Meyer
68aedc3dce Restrict host and service lists when adding new or editing old nodes
resolves #67
2019-02-22 12:21:18 +01:00
Johannes Meyer
a1df0347f5 AddNodeForm: Don't allow to import imported nodes 2019-02-14 14:36:30 +01:00
Johannes Meyer
763ac872d3 Introduce and utilize class NoDuplicateChildrenValidator 2019-02-14 11:29:30 +01:00
Johannes Meyer
327cb7c28c Allow to import processes from different configurations 2019-01-17 15:20:25 +01:00
Johannes Meyer
a707ee3eb7 Use "ID" instead of "Name" and "Display Name" instead of "Title" 2019-01-17 15:20:25 +01:00
Johannes Meyer
510267c7d0 Prevent nodes from being added twice
fixes #186
fixes #128
fixes #114
2019-01-17 15:20:25 +01:00
Eric Lippmann
7c491496fa Use natcasesort 2018-08-13 13:30:33 +02:00
Jennifer Mourek
460670c769 AddNodeForm: Remove option 'DEG'
refs #159
2018-07-02 12:48:21 +02:00
Jennifer Mourek
d722f969b0 Fix not being able to add the first node 2018-06-25 16:56:26 +02:00
Alexander A. Klimov
1bc4b377ea Prevent circular node references
refs #149
2018-06-25 16:42:00 +02:00
Thomas Gelf
dae799fd1e AddNodeForm: do not store a parent in case...
...there is no such

fixes #83
2017-01-23 23:45:52 +01:00
Thomas Gelf
5f6b35906d AddNode: fix creating nested nodes
fixes #13883
2017-01-11 17:38:19 +01:00
Thomas Gelf
22583aa083 BpConfig: renamed from BusinessProcess 2017-01-11 14:09:30 +01:00
Thomas Gelf
7b0b550f4f AddNodeForm: waste less space for multiselects 2017-01-03 11:17:46 +01:00
Thomas Gelf
cb1d43dcb2 AddNodeForm: main title, skip a step when new 2016-12-17 19:20:54 +01:00
Thomas Gelf
cc2bb604c2 AddNodeForm: useless use of use 2016-12-09 13:58:33 +01:00
Thomas Gelf
9712065a6b AddNodeForm: show next when not completed 2016-12-08 10:12:43 +01:00
Thomas Gelf
590bdd35b1 AddNodeForm: workaround for session shutdown issue 2016-12-07 23:20:52 +01:00
Thomas Gelf
46c94ef68f AddNodeForm: use dedicated enums for different...
...host lists
2016-12-07 23:12:11 +01:00
Thomas Gelf
a784b384f4 NodeCreateAction: allow to add root nodes 2016-12-07 16:02:06 +01:00
Thomas Gelf
c11a181701 Process: add and use new form 2016-11-29 15:32:56 +01:00
Thomas Gelf
a47e78209d AddNodeForm: initial commit 2016-11-29 15:06:24 +01:00