diff options
author | Vyacheslav Khaliev <vyacheslav.khaliev@zabbix.com> | 2022-02-18 16:11:00 +0300 |
---|---|---|
committer | Vyacheslav Khaliev <vyacheslav.khaliev@zabbix.com> | 2022-02-18 16:11:00 +0300 |
commit | b00120fa40a154cbb3ba77e7b1864a6f0a19c34b (patch) | |
tree | 52b1ae159198cd181c3ad5202d5a41ead0702283 /templates/app/vmware_fqdn/template_app_vmware_fqdn.yaml | |
parent | 0eb61231e2a19ec4308807cc9b29631969b609dd (diff) | |
parent | cd61218cfa41e6c625fb28eb6b4e06d9826ecfbc (diff) |
.........T [ZBX-20564] changed health state sensor item to lld in vmware hypervisor template
Merge in ZBX/zabbix from feature/ZBX-20564-5.4 to release/5.4
* commit 'cd61218cfa41e6c625fb28eb6b4e06d9826ecfbc':
.........T [ZBX-20564] changed health state sensor item to lld in vmware hypervisor template
Diffstat (limited to 'templates/app/vmware_fqdn/template_app_vmware_fqdn.yaml')
-rw-r--r-- | templates/app/vmware_fqdn/template_app_vmware_fqdn.yaml | 116 |
1 files changed, 81 insertions, 35 deletions
diff --git a/templates/app/vmware_fqdn/template_app_vmware_fqdn.yaml b/templates/app/vmware_fqdn/template_app_vmware_fqdn.yaml index a0ad38d42ff..be43f97003c 100644 --- a/templates/app/vmware_fqdn/template_app_vmware_fqdn.yaml +++ b/templates/app/vmware_fqdn/template_app_vmware_fqdn.yaml @@ -1358,47 +1358,20 @@ zabbix_export: tag: Application value: VMware - - 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},{$VMWARE.HV.UUID}]' + 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: Application - value: VMware - 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' - - - 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' + value: 'Zabbix raw items' - uuid: 0cec294521314c5482233b5b96e90c8d name: 'VMware: Overall status' @@ -1572,6 +1545,79 @@ zabbix_export: - tag: Application value: VMware + - + 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},{$VMWARE.HV.UUID}]' + tags: + - + tag: Application + value: VMware + 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' + - + 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' + master_item: + key: 'vmware.hv.sensors.get[{$VMWARE.URL},{$VMWARE.HV.UUID}]' + 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 valuemaps: - uuid: 25d04e2838af4fcca9ddd21df6781497 |