Ad Widget

Collapse

Calculate with different hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • UknownUser123
    Junior Member
    • Jun 2023
    • 2

    #1

    Calculate with different hosts

    Hi,

    I have created a calculated item that looks like this:

    It gives me the percentage of RAM that is being used on my ESXI host.
    100*(last(//vmware.hv.memory.used[{$VMWARE.URL},{$VMWARE.HV.UUID}])/last(//vmware.hv.hw.memory[{$VMWARE.URL},{$VMWARE.HV.UUID}]))


    My question is:

    I have server-1 and server-2 (which are my ESXI hosts), and I would like to add the percentage of these two servers together so I get the total percentage.

    I have tried something like this, but it doesn't work:
    last(/server-1/vmware.hv.hw.used.memory.perc) + last(/server-2/vmware.hv.hw.used.memory.perc)


    The item was created on my VMware Hypervisor template.

    What am I doing wrong? and should I use another place to create the item?


    Im running Zabbix 6.4.2


    /UnknownUser123


Working...