[ZBXNEXT-7717] VMware Guest uptime trigger should take power state into consideration. Created: 2022 May 14  Updated: 2024 Jul 18  Resolved: 2024 Jul 18

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Templates (T)
Affects Version/s: 5.0.22
Fix Version/s: None

Type: New Feature Request Priority: Trivial
Reporter: Jose A. Hernandez Assignee: Aleksandr Kotsegubov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Sub-task
part of ZBXNEXT-6777 Add item to get VMware guest VM netow... Open
part of ZBXNEXT-7936 Update VMware templates Closed

 Description   

The VMware Guest VM trigger for restarts only takes uptime into account. If a VM is intentionally powered off, the uptime never goes above 0 so the trigger will create a false alarm that cannot be resolved. I assume this affects 6.x too.

May I suggest the following?

1. Modify the existing VMware Guest has been restarted trigger to alert when both the uptime is less than 10 minutes AND the powerstate of the VM is PoweredOn

2. Setup a new Warning state trigger when a VM guest transitions from PoweredOn to PoweredOff state.

3. Setup a new Information state trigger when a VM guest transitions from PoweredOff to PoweredOn state.

 



 Comments   
Comment by Aleksandr Kotsegubov [ 2024 Jun 06 ]

1. The "VM has been restarted" trigger will be updated within the task ZBXNEXT-7936 according to the suggested logic.

 

2. Separate triggers for turning on and off the VM will not be added. Currently, as part of task ZBXNEXT-7936, the “VM is not running” trigger will be added to the VMware Guest template. The meaning of this trigger corresponds to the proposed triggers.

Thus:

  1. When the VM is turned off, the “VM is not running” trigger will fire.
  2. When the VM is turned on, the “VM is not running” trigger will switch to the "OK" state. But at the same time, the “VM has been restarted” trigger will fire.
Comment by Aleksandr Kotsegubov [ 2024 Jul 18 ]

The trigger will be updated within the task ZBXNEXT-7936 

Generated at Wed Aug 13 21:23:41 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.