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
0c3cf6b7bd
Avoid passing non-string args to ctype_*() functions
2022-01-14 10:46:08 +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
f13145f43b
BpUploadForm: Properly adjust the success url
2019-11-04 16:08:28 +01:00
Johannes Meyer
dc69522ae5
ProcessForm: Properly populate element display
2019-03-01 08:20:48 +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
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
ccdadf68f2
MoveNodeForm: Respond with a status of 400 in case of a ModificationError
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
3146bfda6a
MoveNodeForm: Show ModificationErrors as notifications
2019-02-22 12:26:24 +01:00
Johannes Meyer
ea0a04065d
Add support to move nodes between processes
2019-02-22 12:26:24 +01:00
Johannes Meyer
08bfbc462b
Save user defined order of processes/nodes
2019-02-22 12:26:23 +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
Johannes Meyer
de3e0e5b6c
process/config: Preserve display mode when storing changes
2019-01-17 14:57:38 +01:00
Johannes Meyer
64256f3654
EditNodeForm: Only allow basic changes to existing sub-nodes
2019-01-17 14:57:38 +01:00
Johannes Meyer
b2ef90b99f
BpConfigForm: Switch to single column layout after adding/changing processes
2019-01-17 14:36:28 +01:00
Johannes Meyer
67613930a2
BpConfigForm: Don't override processes which have coincidentally the same name
...
fixes #195
2019-01-09 13:02:20 +01:00
Eric Lippmann
8f98f31d66
Trigger session destruction to make sure it get's stored
2018-08-15 16:45:49 +02:00
Eric Lippmann
1c0e9f5bd4
Fix missing redirects
...
Some forms were missing the parent::onSuccess() call.
2018-08-15 09:39:26 +02:00
Eric Lippmann
7c491496fa
Use natcasesort
2018-08-13 13:30:33 +02:00
Eric Lippmann
99a66a4b4b
Remove node before recreating it upon edit
...
Else you may run into errors that objects have been defined twice.
2018-07-31 12:59:49 +02:00
Jennifer Mourek
9cfe95df60
Remove option 'DEG'
2018-07-31 12:50:25 +02:00
Jennifer Mourek
d9808ae9b7
Remove comment and fix codestyle
2018-07-31 12:50:25 +02:00
Jennifer Mourek
c1cb7612c0
Add preselection when editing
2018-07-31 12:50:25 +02:00
Jennifer Mourek
87b1d961bc
Add functionality to edit node
2018-07-31 12:50:25 +02:00
Eric Lippmann
28bed2859b
Merge pull request #152 from Icinga/bugfix/cannot-remove-a-node-132
...
Make node removal working as expected
2018-07-02 17:23:32 +02:00
Jennifer Mourek
460670c769
AddNodeForm: Remove option 'DEG'
...
refs #159
2018-07-02 12:48:21 +02:00
Eric Lippmann
2fd3011978
Merge pull request #157 from Icinga/bugfix/new-node-self-reference-149
...
Prevent circular node references
2018-06-26 10:54:53 +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
Alexander A. Klimov
e4e651cbe8
Make node removal working as expected
...
refs #132
2017-12-04 14:14:06 +01:00
Alexander A. Klimov
aac6ebb679
Lock processes more user-friendly
...
refs #150
2017-12-04 14:13:48 +01:00
Thomas Gelf
7452a39f82
BpConfig/UploadForm: unify common code, enforce...
...
...prefix(es) according configured restrictions
refs #106
2017-02-08 16:08:29 +01:00
Thomas Gelf
0c395cc005
DeleteNode: use parent, not path
...
fixes #94
2017-01-27 14:57:57 +01:00
Thomas Gelf
b0e38df177
BpUploadForm: stop on duplicate name
...
fixes #95
2017-01-27 14:56:07 +01:00
Thomas Gelf
8be4adfa5d
BpUploadForm: remove newline to fix phpcs issue
2017-01-27 11:40:52 +01:00
Thomas Gelf
dfd9ee74c3
BpUploadForm: completely refactor upload
...
It's much more comfortable and consists of two steps, upload - and a validation
allowing one to manually tweak the source before storing it.
fixes #8
2017-01-27 10:04:59 +01:00