Ad Widget

Collapse

Can I count hosts based on a condition on 'last_foreach' values (e.g., uptime < 5min)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stadmin
    Junior Member
    • Jan 2025
    • 3

    #1

    Can I count hosts based on a condition on 'last_foreach' values (e.g., uptime < 5min)

    Hi All,

    I'm trying to create an item in my Zabbix 7.2.6 test environment that counts how many hosts currently have a system uptime of less than 5 minutes (i.e., system.uptime < 300).
    The idea behind this is to create a trigger that can alert us to mass reboot events.

    For example, if a hypervisor crashes and the guest VMs it was hosting are restarted (on a different hypervisor in a cluster), many systems would suddenly report low uptimes.

    Just to note: I'm not able to monitor the underlying hypervisors directly.

    Thanks in advance!
Working...