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:
authorVyacheslav Khaliev <vyacheslav.khaliev@zabbix.com>2022-05-24 04:27:32 +0300
committerVyacheslav Khaliev <vyacheslav.khaliev@zabbix.com>2022-05-24 04:27:32 +0300
commit3839693d45bbb78af6903ece597c61e26cf8f12f (patch)
treedab832ae14df26703b76cec165b2d9dd1841db51 /templates/san
parent3a6f5fab99c6f3eb523f8214f01ef2b0f14d1a03 (diff)
.........T [ZBXNEXT-7632] updated HPE Primera template
Diffstat (limited to 'templates/san')
-rw-r--r--templates/san/hpe_primera_http/README.md2
-rw-r--r--templates/san/hpe_primera_http/template_san_hpe_primera_http.yaml12
2 files changed, 6 insertions, 8 deletions
diff --git a/templates/san/hpe_primera_http/README.md b/templates/san/hpe_primera_http/README.md
index 530c87cd76e..ac5eafbd671 100644
--- a/templates/san/hpe_primera_http/README.md
+++ b/templates/san/hpe_primera_http/README.md
@@ -5,7 +5,7 @@
For Zabbix version: 6.0 and higher
The template to monitor HPE Primera by HTTP.
-It works without any external scripts and uses the Script items.
+It works without any external scripts and uses the script item.
This template was tested on:
diff --git a/templates/san/hpe_primera_http/template_san_hpe_primera_http.yaml b/templates/san/hpe_primera_http/template_san_hpe_primera_http.yaml
index 9b016347c32..31007e0c753 100644
--- a/templates/san/hpe_primera_http/template_san_hpe_primera_http.yaml
+++ b/templates/san/hpe_primera_http/template_san_hpe_primera_http.yaml
@@ -1,6 +1,6 @@
zabbix_export:
version: '6.0'
- date: '2022-05-24T00:20:52Z'
+ date: '2022-05-24T01:22:35Z'
groups:
-
uuid: 7c2cb727f85b492d88cd56e17127c64d
@@ -12,7 +12,7 @@ zabbix_export:
name: 'HPE Primera by HTTP'
description: |
The template to monitor HPE Primera by HTTP.
- It works without any external scripts and uses the script items.
+ It works without any external scripts and uses the script item.
Setup:
1. Create user zabbix on the storage with browse role and enable it for all domains.
@@ -65,9 +65,7 @@ zabbix_export:
methods = ['disks', 'cpgs', 'hosts', 'ports', 'system', 'tasks', 'volumes'],
result = {},
errors = {},
- data = {},
- auth = 'auth',
- logout = 'logout';
+ data = {};
fields.forEach(function (field) {
if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '' ) {
@@ -106,7 +104,7 @@ zabbix_export:
sessionKey = getSessionKey()['key'];
}
catch (error) {
- errors[auth] = error.toString();
+ errors.auth = error.toString();
}
function getHttpData(method) {
@@ -148,7 +146,7 @@ zabbix_export:
}
}
catch (error) {
- errors[logout] = error.toString();
+ errors.logout = error.toString();
}
data.errors = errors;