From 338f2aebc98c550cc8899c25e961855abe0a579e Mon Sep 17 00:00:00 2001 From: Vovik Date: Wed, 12 Jul 2023 14:04:27 +0300 Subject: [PATCH] Added validation of received data and discarding in case of errors --- .../6.0/zbx_NVidia_GPUs.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Server_Hardware/Other/template_nvidia-smi_multigpu/6.0/zbx_NVidia_GPUs.yaml b/Server_Hardware/Other/template_nvidia-smi_multigpu/6.0/zbx_NVidia_GPUs.yaml index d391eb7ff..b7f6749ec 100644 --- a/Server_Hardware/Other/template_nvidia-smi_multigpu/6.0/zbx_NVidia_GPUs.yaml +++ b/Server_Hardware/Other/template_nvidia-smi_multigpu/6.0/zbx_NVidia_GPUs.yaml @@ -32,6 +32,10 @@ zabbix_export: value_type: TEXT description: 'Data collection by GPUs' preprocessing: + - type: NOT_MATCHES_REGEX + parameters: + - '^.*Error.*$' + error_handler: DISCARD_VALUE - type: CSV_TO_JSON parameters: - ',' @@ -127,6 +131,7 @@ zabbix_export: - type: JSONPATH parameters: - '$[?(@.1 == ''{#ID}'')].6.first()' + error_handler: DISCARD_VALUE master_item: key: gpu.data - uuid: a0601fa235114c8da7854df368dcbb91 @@ -142,6 +147,7 @@ zabbix_export: - type: JSONPATH parameters: - '$[?(@.1 == ''{#ID}'')].5.first()' + error_handler: DISCARD_VALUE - type: MULTIPLIER parameters: - '1048576' @@ -160,6 +166,7 @@ zabbix_export: - type: JSONPATH parameters: - '$[?(@.1 == ''{#ID}'')].3.first()' + error_handler: DISCARD_VALUE - type: MULTIPLIER parameters: - '1048576' @@ -178,6 +185,7 @@ zabbix_export: - type: JSONPATH parameters: - '$[?(@.1 == ''{#ID}'')].4.first()' + error_handler: DISCARD_VALUE - type: MULTIPLIER parameters: - '1048576' @@ -197,6 +205,7 @@ zabbix_export: - type: JSONPATH parameters: - '$[?(@.1 == ''{#ID}'')].8.first()' + error_handler: DISCARD_VALUE master_item: key: gpu.data - uuid: 242afcbf5fb34b05bd0043c2cb703f2e @@ -213,6 +222,7 @@ zabbix_export: - type: JSONPATH parameters: - '$[?(@.1 == ''{#ID}'')].2.first()' + error_handler: DISCARD_VALUE master_item: key: gpu.data trigger_prototypes: @@ -242,6 +252,7 @@ zabbix_export: - type: JSONPATH parameters: - '$[?(@.1 == ''{#ID}'')].7.first()' + error_handler: DISCARD_VALUE master_item: key: gpu.data trigger_prototypes: