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-02-18 10:10:44 +0300
committerVyacheslav Khaliev <vyacheslav.khaliev@zabbix.com>2022-02-18 10:10:44 +0300
commitdd7a69cb90d63f7582f3b6077ef5080e3c8635b5 (patch)
treebe5abc35b5025d844af1ea57a015cfb62c5ac43f /templates
parenta238b71750447224aa274be7a8ee2bf9e83d6fa8 (diff)
parente9ccc7cd798282275b7f76064d1aa47d924c8c29 (diff)
.........T [ZBX-20564] changed health state sensor item to lld in vmware hypervisor template
Merge in ZBX/zabbix from feature/ZBX-20564-6.1 to master * commit 'e9ccc7cd798282275b7f76064d1aa47d924c8c29': .........T [ZBX-20564] changed health state sensor item to lld in vmware hypervisor template
Diffstat (limited to 'templates')
-rw-r--r--templates/app/vmware/README.md8
-rw-r--r--templates/app/vmware/template_app_vmware.yaml146
-rw-r--r--templates/app/vmware_fqdn/README.md8
-rw-r--r--templates/app/vmware_fqdn/template_app_vmware_fqdn.yaml146
4 files changed, 202 insertions, 106 deletions
diff --git a/templates/app/vmware/README.md b/templates/app/vmware/README.md
index c07071cdf2b..dc6c4d19a43 100644
--- a/templates/app/vmware/README.md
+++ b/templates/app/vmware/README.md
@@ -196,6 +196,7 @@ There are no template links in this template.
|Name|Description|Type|Key and additional info|
|----|-----------|----|----|
|Datastore discovery |<p>-</p> |SIMPLE |vmware.hv.datastore.discovery[{$VMWARE.URL},{$VMWARE.HV.UUID}] |
+|Healthcheck discovery |<p>VMware Rollup Health State sensor discovery</p> |DEPENDENT |vmware.hv.healthcheck.discovery<p>**Preprocessing**:</p><p>- JSONPATH: `$..HostNumericSensorInfo[?(@.name=="VMware Rollup Health State")]`</p><p>- JAVASCRIPT: `return JSON.stringify(value != "[]" ? [{'{#SINGLETON}': ''}] : []);`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p> |
## Items collected
@@ -222,7 +223,6 @@ There are no template links in this template.
|VMware |VMware: Used memory |<p>Physical memory usage on the host.</p> |SIMPLE |vmware.hv.memory.used[{$VMWARE.URL},{$VMWARE.HV.UUID}] |
|VMware |VMware: Number of bytes received |<p>VMware hypervisor network input statistics (bytes per second).</p> |SIMPLE |vmware.hv.network.in[{$VMWARE.URL},{$VMWARE.HV.UUID},bps] |
|VMware |VMware: Number of bytes transmitted |<p>VMware hypervisor network output statistics (bytes per second).</p> |SIMPLE |vmware.hv.network.out[{$VMWARE.URL},{$VMWARE.HV.UUID},bps] |
-|VMware |VMware: Health state rollup |<p>The host health state rollup sensor value: gray - unknown, green - ok, red - it has a problem, yellow - it might have a problem.</p> |SIMPLE |vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}] |
|VMware |VMware: Overall status |<p>The overall alarm status of the host: gray - unknown, green - ok, red - it has a problem, yellow - it might have a problem.</p> |SIMPLE |vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}] |
|VMware |VMware: Uptime |<p>System uptime.</p> |SIMPLE |vmware.hv.uptime[{$VMWARE.URL},{$VMWARE.HV.UUID}] |
|VMware |VMware: Version |<p>Dot-separated version string.</p> |SIMPLE |vmware.hv.version[{$VMWARE.URL},{$VMWARE.HV.UUID}] |
@@ -232,18 +232,20 @@ There are no template links in this template.
|VMware |VMware: Total size of datastore {#DATASTORE} |<p>VMware datastore space in bytes.</p> |SIMPLE |vmware.hv.datastore.size[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE}] |
|VMware |VMware: Average write latency of the datastore {#DATASTORE} |<p>Average amount of time for a write operation to the datastore (milliseconds).</p> |SIMPLE |vmware.hv.datastore.write[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE},latency] |
|VMware |VMware: Multipath count for datastore {#DATASTORE} |<p>Number of available datastore paths.</p> |SIMPLE |vmware.hv.datastore.multipath[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE}] |
+|VMware |VMware: Health state rollup |<p>The host health state rollup sensor value: gray - unknown, green - ok, red - it has a problem, yellow - it might have a problem.</p> |DEPENDENT |vmware.hv.sensor.health.state[{#SINGLETON}]<p>**Preprocessing**:</p><p>- JSONPATH: `$..HostNumericSensorInfo[?(@.name=="VMware Rollup Health State")].healthState.label.first()`</p> |
+|Zabbix raw items |VMware: Get sensors |<p>Master item for sensors data.</p> |SIMPLE |vmware.hv.sensors.get[{$VMWARE.URL},{HOST.HOST}] |
## Triggers
|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----|----|----|
|VMware: Hypervisor is down |<p>The service is unavailable or does not accept ICMP ping.</p> |`last(/VMware Hypervisor/icmpping[])=0` |AVERAGE |<p>Manual close: YES</p> |
-|VMware: The {$VMWARE.HV.UUID} health is Red |<p>One or more components in the appliance might be in an unusable status and the appliance might become unresponsive soon. Security patches might be available.</p> |`last(/VMware Hypervisor/vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3` |HIGH |<p>**Depends on**:</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p> |
-|VMware: The {$VMWARE.HV.UUID} health is Yellow |<p>One or more components in the appliance might become overloaded soon.</p> |`last(/VMware Hypervisor/vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}])=2` |AVERAGE |<p>**Depends on**:</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p><p>- VMware: The {$VMWARE.HV.UUID} health is Yellow</p> |
|VMware: The {$VMWARE.HV.UUID} health is Red |<p>One or more components in the appliance might be in an unusable status and the appliance might become unresponsive soon. Security patches might be available.</p> |`last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3` |HIGH | |
|VMware: The {$VMWARE.HV.UUID} health is Yellow |<p>One or more components in the appliance might become overloaded soon.</p> |`last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=2` |AVERAGE |<p>**Depends on**:</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p> |
|VMware: Hypervisor has been restarted (uptime < 10m) |<p>Uptime is less than 10 minutes</p> |`last(/VMware Hypervisor/vmware.hv.uptime[{$VMWARE.URL},{$VMWARE.HV.UUID}])<10m` |WARNING |<p>Manual close: YES</p> |
|VMware: The multipath count has been changed |<p>The number of available datastore paths less than registered ({#MULTIPATH.COUNT}).</p> |`last(/VMware Hypervisor/vmware.hv.datastore.multipath[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE}],#1)<>last(/VMware Hypervisor/vmware.hv.datastore.multipath[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE}],#2) and last(/VMware Hypervisor/vmware.hv.datastore.multipath[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE}])<{#MULTIPATH.COUNT}` |AVERAGE |<p>Manual close: YES</p> |
+|VMware: The {$VMWARE.HV.UUID} health is Red |<p>One or more components in the appliance might be in an unusable status and the appliance might become unresponsive soon. Security patches might be available.</p> |`last(/VMware Hypervisor/vmware.hv.sensor.health.state[{#SINGLETON}])="Red"` |HIGH |<p>**Depends on**:</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p> |
+|VMware: The {$VMWARE.HV.UUID} health is Yellow |<p>One or more components in the appliance might become overloaded soon.</p> |`last(/VMware Hypervisor/vmware.hv.sensor.health.state[{#SINGLETON}])="Yellow"` |AVERAGE |<p>**Depends on**:</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p><p>- VMware: The {$VMWARE.HV.UUID} health is Yellow</p> |
## Feedback
diff --git a/templates/app/vmware/template_app_vmware.yaml b/templates/app/vmware/template_app_vmware.yaml
index 9a492b3d977..c01fbf153f4 100644
--- a/templates/app/vmware/template_app_vmware.yaml
+++ b/templates/app/vmware/template_app_vmware.yaml
@@ -1,6 +1,6 @@
zabbix_export:
version: '6.0'
- date: '2022-01-26T10:31:39Z'
+ date: '2022-02-16T14:52:48Z'
groups:
-
uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
@@ -1455,61 +1455,20 @@ zabbix_export:
tag: component
value: power
-
- uuid: 36b28fccf6db4c49bf20157c419400d0
- name: 'VMware: Health state rollup'
+ uuid: 3c9d6ffb53624758ad888bf70f69218c
+ name: 'VMware: Get sensors'
type: SIMPLE
- key: 'vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}]'
- history: 7d
+ key: 'vmware.hv.sensors.get[{$VMWARE.URL},{HOST.HOST}]'
+ history: '0'
+ trends: '0'
+ value_type: TEXT
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
- description: 'The host health state rollup sensor value: gray - unknown, green - ok, red - it has a problem, yellow - it might have a problem.'
- valuemap:
- name: 'VMware status'
+ description: 'Master item for sensors data.'
tags:
-
tag: component
- value: health
- triggers:
- -
- uuid: ffb8e14b1ea546b69f40070c628ac653
- expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3'
- name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
- priority: HIGH
- description: 'One or more components in the appliance might be in an unusable status and the appliance might become unresponsive soon. Security patches might be available.'
- dependencies:
- -
- name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
- expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3'
- tags:
- -
- tag: scope
- value: availability
- -
- tag: scope
- value: performance
- -
- uuid: 4825f11dcbf74e2c8e7e2b251cbeb7d9
- expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}])=2'
- name: 'VMware: The {$VMWARE.HV.UUID} health is Yellow'
- priority: AVERAGE
- description: 'One or more components in the appliance might become overloaded soon.'
- dependencies:
- -
- name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
- expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3'
- -
- name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
- expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3'
- -
- name: 'VMware: The {$VMWARE.HV.UUID} health is Yellow'
- expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=2'
- tags:
- -
- tag: scope
- value: availability
- -
- tag: scope
- value: performance
+ value: raw
-
uuid: 0cec294521314c5482233b5b96e90c8d
name: 'VMware: Overall status'
@@ -1720,6 +1679,93 @@ zabbix_export:
-
tag: datastore
value: '{#DATASTORE}'
+ -
+ uuid: deb31adf69634837839e2d8f87167f28
+ name: 'Healthcheck discovery'
+ type: DEPENDENT
+ key: vmware.hv.healthcheck.discovery
+ delay: '0'
+ description: 'VMware Rollup Health State sensor discovery'
+ item_prototypes:
+ -
+ uuid: fabb7524dd454daa942266e5565ce40e
+ name: 'VMware: Health state rollup'
+ type: DEPENDENT
+ key: 'vmware.hv.sensor.health.state[{#SINGLETON}]'
+ delay: '0'
+ history: 7d
+ trends: '0'
+ value_type: CHAR
+ description: 'The host health state rollup sensor value: gray - unknown, green - ok, red - it has a problem, yellow - it might have a problem.'
+ preprocessing:
+ -
+ type: JSONPATH
+ parameters:
+ - '$..HostNumericSensorInfo[?(@.name=="VMware Rollup Health State")].healthState.label.first()'
+ master_item:
+ key: 'vmware.hv.sensors.get[{$VMWARE.URL},{HOST.HOST}]'
+ tags:
+ -
+ tag: component
+ value: health
+ trigger_prototypes:
+ -
+ uuid: 9f2a65161946436986aacf6c9a637673
+ expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{#SINGLETON}])="Red"'
+ name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
+ priority: HIGH
+ description: 'One or more components in the appliance might be in an unusable status and the appliance might become unresponsive soon. Security patches might be available.'
+ dependencies:
+ -
+ name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
+ expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3'
+ tags:
+ -
+ tag: scope
+ value: availability
+ -
+ tag: scope
+ value: performance
+ -
+ uuid: dc4f84eb8d2143bb80999fbc58f38928
+ expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{#SINGLETON}])="Yellow"'
+ name: 'VMware: The {$VMWARE.HV.UUID} health is Yellow'
+ priority: AVERAGE
+ description: 'One or more components in the appliance might become overloaded soon.'
+ dependencies:
+ -
+ name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
+ expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{#SINGLETON}])="Red"'
+ -
+ name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
+ expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3'
+ -
+ name: 'VMware: The {$VMWARE.HV.UUID} health is Yellow'
+ expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=2'
+ tags:
+ -
+ tag: scope
+ value: availability
+ -
+ tag: scope
+ value: performance
+ master_item:
+ key: 'vmware.hv.sensors.get[{$VMWARE.URL},{HOST.HOST}]'
+ preprocessing:
+ -
+ type: JSONPATH
+ parameters:
+ - '$..HostNumericSensorInfo[?(@.name=="VMware Rollup Health State")]'
+ error_handler: CUSTOM_VALUE
+ error_handler_params: '[]'
+ -
+ type: JAVASCRIPT
+ parameters:
+ - 'return JSON.stringify(value != "[]" ? [{''{#SINGLETON}'': ''''}] : []);'
+ -
+ type: DISCARD_UNCHANGED_HEARTBEAT
+ parameters:
+ - 6h
tags:
-
tag: class
diff --git a/templates/app/vmware_fqdn/README.md b/templates/app/vmware_fqdn/README.md
index 4b2e44cbddc..341036f545c 100644
--- a/templates/app/vmware_fqdn/README.md
+++ b/templates/app/vmware_fqdn/README.md
@@ -196,6 +196,7 @@ There are no template links in this template.
|Name|Description|Type|Key and additional info|
|----|-----------|----|----|
|Datastore discovery |<p>-</p> |SIMPLE |vmware.hv.datastore.discovery[{$VMWARE.URL},{$VMWARE.HV.UUID}] |
+|Healthcheck discovery |<p>VMware Rollup Health State sensor discovery</p> |DEPENDENT |vmware.hv.healthcheck.discovery<p>**Preprocessing**:</p><p>- JSONPATH: `$..HostNumericSensorInfo[?(@.name=="VMware Rollup Health State")]`</p><p>- JAVASCRIPT: `return JSON.stringify(value != "[]" ? [{'{#SINGLETON}': ''}] : []);`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p> |
## Items collected
@@ -222,7 +223,6 @@ There are no template links in this template.
|VMware |VMware: Used memory |<p>Physical memory usage on the host.</p> |SIMPLE |vmware.hv.memory.used[{$VMWARE.URL},{$VMWARE.HV.UUID}] |
|VMware |VMware: Number of bytes received |<p>VMware hypervisor network input statistics (bytes per second).</p> |SIMPLE |vmware.hv.network.in[{$VMWARE.URL},{$VMWARE.HV.UUID},bps] |
|VMware |VMware: Number of bytes transmitted |<p>VMware hypervisor network output statistics (bytes per second).</p> |SIMPLE |vmware.hv.network.out[{$VMWARE.URL},{$VMWARE.HV.UUID},bps] |
-|VMware |VMware: Health state rollup |<p>The host health state rollup sensor value: gray - unknown, green - ok, red - it has a problem, yellow - it might have a problem.</p> |SIMPLE |vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}] |
|VMware |VMware: Overall status |<p>The overall alarm status of the host: gray - unknown, green - ok, red - it has a problem, yellow - it might have a problem.</p> |SIMPLE |vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}] |
|VMware |VMware: Uptime |<p>System uptime.</p> |SIMPLE |vmware.hv.uptime[{$VMWARE.URL},{$VMWARE.HV.UUID}] |
|VMware |VMware: Version |<p>Dot-separated version string.</p> |SIMPLE |vmware.hv.version[{$VMWARE.URL},{$VMWARE.HV.UUID}] |
@@ -232,18 +232,20 @@ There are no template links in this template.
|VMware |VMware: Total size of datastore {#DATASTORE} |<p>VMware datastore space in bytes.</p> |SIMPLE |vmware.hv.datastore.size[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE}] |
|VMware |VMware: Average write latency of the datastore {#DATASTORE} |<p>Average amount of time for a write operation to the datastore (milliseconds).</p> |SIMPLE |vmware.hv.datastore.write[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE},latency] |
|VMware |VMware: Multipath count for datastore {#DATASTORE} |<p>Number of available datastore paths.</p> |SIMPLE |vmware.hv.datastore.multipath[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE}] |
+|VMware |VMware: Health state rollup |<p>The host health state rollup sensor value: gray - unknown, green - ok, red - it has a problem, yellow - it might have a problem.</p> |DEPENDENT |vmware.hv.sensor.health.state[{#SINGLETON}]<p>**Preprocessing**:</p><p>- JSONPATH: `$..HostNumericSensorInfo[?(@.name=="VMware Rollup Health State")].healthState.label.first()`</p> |
+|Zabbix raw items |VMware: Get sensors |<p>Master item for sensors data.</p> |SIMPLE |vmware.hv.sensors.get[{$VMWARE.URL},{HOST.HOST}] |
## Triggers
|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----|----|----|
|VMware: Hypervisor is down |<p>The service is unavailable or does not accept ICMP ping.</p> |`last(/VMware Hypervisor/icmpping[])=0` |AVERAGE |<p>Manual close: YES</p> |
-|VMware: The {$VMWARE.HV.UUID} health is Red |<p>One or more components in the appliance might be in an unusable status and the appliance might become unresponsive soon. Security patches might be available.</p> |`last(/VMware Hypervisor/vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3` |HIGH |<p>**Depends on**:</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p> |
-|VMware: The {$VMWARE.HV.UUID} health is Yellow |<p>One or more components in the appliance might become overloaded soon.</p> |`last(/VMware Hypervisor/vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}])=2` |AVERAGE |<p>**Depends on**:</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p><p>- VMware: The {$VMWARE.HV.UUID} health is Yellow</p> |
|VMware: The {$VMWARE.HV.UUID} health is Red |<p>One or more components in the appliance might be in an unusable status and the appliance might become unresponsive soon. Security patches might be available.</p> |`last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3` |HIGH | |
|VMware: The {$VMWARE.HV.UUID} health is Yellow |<p>One or more components in the appliance might become overloaded soon.</p> |`last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=2` |AVERAGE |<p>**Depends on**:</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p> |
|VMware: Hypervisor has been restarted (uptime < 10m) |<p>Uptime is less than 10 minutes</p> |`last(/VMware Hypervisor/vmware.hv.uptime[{$VMWARE.URL},{$VMWARE.HV.UUID}])<10m` |WARNING |<p>Manual close: YES</p> |
|VMware: The multipath count has been changed |<p>The number of available datastore paths less than registered ({#MULTIPATH.COUNT}).</p> |`last(/VMware Hypervisor/vmware.hv.datastore.multipath[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE}],#1)<>last(/VMware Hypervisor/vmware.hv.datastore.multipath[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE}],#2) and last(/VMware Hypervisor/vmware.hv.datastore.multipath[{$VMWARE.URL},{$VMWARE.HV.UUID},{#DATASTORE}])<{#MULTIPATH.COUNT}` |AVERAGE |<p>Manual close: YES</p> |
+|VMware: The {$VMWARE.HV.UUID} health is Red |<p>One or more components in the appliance might be in an unusable status and the appliance might become unresponsive soon. Security patches might be available.</p> |`last(/VMware Hypervisor/vmware.hv.sensor.health.state[{#SINGLETON}])="Red"` |HIGH |<p>**Depends on**:</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p> |
+|VMware: The {$VMWARE.HV.UUID} health is Yellow |<p>One or more components in the appliance might become overloaded soon.</p> |`last(/VMware Hypervisor/vmware.hv.sensor.health.state[{#SINGLETON}])="Yellow"` |AVERAGE |<p>**Depends on**:</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p><p>- VMware: The {$VMWARE.HV.UUID} health is Red</p><p>- VMware: The {$VMWARE.HV.UUID} health is Yellow</p> |
## Feedback
diff --git a/templates/app/vmware_fqdn/template_app_vmware_fqdn.yaml b/templates/app/vmware_fqdn/template_app_vmware_fqdn.yaml
index 4ca816aeeb5..64ffaf88d23 100644
--- a/templates/app/vmware_fqdn/template_app_vmware_fqdn.yaml
+++ b/templates/app/vmware_fqdn/template_app_vmware_fqdn.yaml
@@ -1,6 +1,6 @@
zabbix_export:
version: '6.0'
- date: '2022-01-26T19:00:53Z'
+ date: '2022-02-16T14:52:56Z'
groups:
-
uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
@@ -1466,61 +1466,20 @@ zabbix_export:
tag: component
value: power
-
- uuid: 36b28fccf6db4c49bf20157c419400d0
- name: 'VMware: Health state rollup'
+ uuid: 3c9d6ffb53624758ad888bf70f69218c
+ name: 'VMware: Get sensors'
type: SIMPLE
- key: 'vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}]'
- history: 7d
+ key: 'vmware.hv.sensors.get[{$VMWARE.URL},{HOST.HOST}]'
+ history: '0'
+ trends: '0'
+ value_type: TEXT
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
- description: 'The host health state rollup sensor value: gray - unknown, green - ok, red - it has a problem, yellow - it might have a problem.'
- valuemap:
- name: 'VMware status'
+ description: 'Master item for sensors data.'
tags:
-
tag: component
- value: health
- triggers:
- -
- uuid: ffb8e14b1ea546b69f40070c628ac653
- expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3'
- name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
- priority: HIGH
- description: 'One or more components in the appliance might be in an unusable status and the appliance might become unresponsive soon. Security patches might be available.'
- dependencies:
- -
- name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
- expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3'
- tags:
- -
- tag: scope
- value: availability
- -
- tag: scope
- value: performance
- -
- uuid: 4825f11dcbf74e2c8e7e2b251cbeb7d9
- expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}])=2'
- name: 'VMware: The {$VMWARE.HV.UUID} health is Yellow'
- priority: AVERAGE
- description: 'One or more components in the appliance might become overloaded soon.'
- dependencies:
- -
- name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
- expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3'
- -
- name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
- expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3'
- -
- name: 'VMware: The {$VMWARE.HV.UUID} health is Yellow'
- expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=2'
- tags:
- -
- tag: scope
- value: availability
- -
- tag: scope
- value: performance
+ value: raw
-
uuid: 0cec294521314c5482233b5b96e90c8d
name: 'VMware: Overall status'
@@ -1731,6 +1690,93 @@ zabbix_export:
-
tag: datastore
value: '{#DATASTORE}'
+ -
+ uuid: deb31adf69634837839e2d8f87167f28
+ name: 'Healthcheck discovery'
+ type: DEPENDENT
+ key: vmware.hv.healthcheck.discovery
+ delay: '0'
+ description: 'VMware Rollup Health State sensor discovery'
+ item_prototypes:
+ -
+ uuid: fabb7524dd454daa942266e5565ce40e
+ name: 'VMware: Health state rollup'
+ type: DEPENDENT
+ key: 'vmware.hv.sensor.health.state[{#SINGLETON}]'
+ delay: '0'
+ history: 7d
+ trends: '0'
+ value_type: CHAR
+ description: 'The host health state rollup sensor value: gray - unknown, green - ok, red - it has a problem, yellow - it might have a problem.'
+ preprocessing:
+ -
+ type: JSONPATH
+ parameters:
+ - '$..HostNumericSensorInfo[?(@.name=="VMware Rollup Health State")].healthState.label.first()'
+ master_item:
+ key: 'vmware.hv.sensors.get[{$VMWARE.URL},{HOST.HOST}]'
+ tags:
+ -
+ tag: component
+ value: health
+ trigger_prototypes:
+ -
+ uuid: 9f2a65161946436986aacf6c9a637673
+ expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{#SINGLETON}])="Red"'
+ name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
+ priority: HIGH
+ description: 'One or more components in the appliance might be in an unusable status and the appliance might become unresponsive soon. Security patches might be available.'
+ dependencies:
+ -
+ name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
+ expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3'
+ tags:
+ -
+ tag: scope
+ value: availability
+ -
+ tag: scope
+ value: performance
+ -
+ uuid: dc4f84eb8d2143bb80999fbc58f38928
+ expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{#SINGLETON}])="Yellow"'
+ name: 'VMware: The {$VMWARE.HV.UUID} health is Yellow'
+ priority: AVERAGE
+ description: 'One or more components in the appliance might become overloaded soon.'
+ dependencies:
+ -
+ name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
+ expression: 'last(/VMware Hypervisor/vmware.hv.sensor.health.state[{#SINGLETON}])="Red"'
+ -
+ name: 'VMware: The {$VMWARE.HV.UUID} health is Red'
+ expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=3'
+ -
+ name: 'VMware: The {$VMWARE.HV.UUID} health is Yellow'
+ expression: 'last(/VMware Hypervisor/vmware.hv.status[{$VMWARE.URL},{$VMWARE.HV.UUID}])=2'
+ tags:
+ -
+ tag: scope
+ value: availability
+ -
+ tag: scope
+ value: performance
+ master_item:
+ key: 'vmware.hv.sensors.get[{$VMWARE.URL},{HOST.HOST}]'
+ preprocessing:
+ -
+ type: JSONPATH
+ parameters:
+ - '$..HostNumericSensorInfo[?(@.name=="VMware Rollup Health State")]'
+ error_handler: CUSTOM_VALUE
+ error_handler_params: '[]'
+ -
+ type: JAVASCRIPT
+ parameters:
+ - 'return JSON.stringify(value != "[]" ? [{''{#SINGLETON}'': ''''}] : []);'
+ -
+ type: DISCARD_UNCHANGED_HEARTBEAT
+ parameters:
+ - 6h
tags:
-
tag: class