Skip to content

Commit 9b4c224

Browse files
authored
add recovery expression for VM stopped trigger
Added explicit recovery expression to "VM {#VMID} status is stopped" trigger, although it should not be necessary. Ensures proper alert recovery when VM status returns to running.
1 parent 9d10fa2 commit 9b4c224

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Virtualization/template_proxmox-ve-rest-api-zabbix/7.0/template_proxmox-ve-rest-api.yaml.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1860,6 +1860,8 @@ zabbix_export:
18601860
trigger_prototypes:
18611861
- uuid: ac085aa97edb40dcb08272e859a39e36
18621862
expression: 'min(/Template Proxmox VE REST API/vm.status[{#VMID}],900)=0 and {$ENABLE_VM_STOP_ALERT:"{#VMID}"}=1'
1863+
recovery_mode: RECOVERY_EXPRESSION
1864+
recovery_expression: 'last(/Template Proxmox VE REST API/vm.status[{#VMID}])=1'
18631865
name: 'VM {#VMID} status is stopped'
18641866
priority: HIGH
18651867
description: |
@@ -2290,7 +2292,7 @@ zabbix_export:
22902292
parameters:
22912293
- '^\["(?:OK|running|stopped|error|unexpected status|CT is locked \(disk\)|timeout waiting on systemd|Failed to run vncproxy\.|unable to read tail \(got 0 byte\)|interrupted by signal)"\]$'
22922294
- \0
2293-
error_handler: CUSTOM_ERROR
2295+
error_handler: CUSTOM_VALUE
22942296
error_handler_params: '10'
22952297
- type: LTRIM
22962298
parameters:

0 commit comments

Comments
 (0)