Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/items.php')
-rw-r--r--frontends/php/items.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php
index cdff4020060..275c276c4c8 100644
--- a/frontends/php/items.php
+++ b/frontends/php/items.php
@@ -1145,7 +1145,8 @@ elseif ($valid_input && hasRequest('massupdate') && hasRequest('group_itemid'))
'post_type' => getRequest('post_type'),
'posts' => getRequest('posts'),
'headers' => getRequest('headers', []),
- 'allow_traps' => getRequest('allow_traps', HTTPCHECK_ALLOW_TRAPS_OFF)
+ 'allow_traps' => getRequest('allow_traps', HTTPCHECK_ALLOW_TRAPS_OFF),
+ 'preprocessing' => []
];
if ($item['headers']) {
@@ -1496,6 +1497,7 @@ if (isset($_REQUEST['form']) && str_in_array($_REQUEST['form'], ['create', 'upda
$data['config'] = select_config();
$data['host'] = $host;
$data['trends_default'] = DB::getDefault('items', 'trends');
+ $data['preprocessing_types'] = CItem::$supported_preprocessing_types;
// Sort interfaces to be listed starting with one selected as 'main'.
CArrayHelper::sort($data['interfaces'], [
@@ -1559,9 +1561,18 @@ elseif (((hasRequest('action') && getRequest('action') === 'item.massupdateform'
'posts' => getRequest('posts', ''),
'headers' => getRequest('headers', []),
'allow_traps' => getRequest('allow_traps', HTTPCHECK_ALLOW_TRAPS_OFF),
- 'massupdate_app_action' => getRequest('massupdate_app_action', ZBX_MULTISELECT_ADD)
+ 'massupdate_app_action' => getRequest('massupdate_app_action', ZBX_MULTISELECT_ADD),
+ 'preprocessing_types' => CItem::$supported_preprocessing_types
];
+ foreach ($data['preprocessing'] as &$step) {
+ $step += [
+ 'error_handler' => ZBX_PREPROC_FAIL_DEFAULT,
+ 'error_handler_params' => ''
+ ];
+ }
+ unset($step);
+
$data['displayApplications'] = true;
$data['displayInterfaces'] = true;
$data['displayMasteritems'] = true;