How to sum up values from all hosts into one value?

I’m trying to get he total the amount of total disk space of all Linux hosts that I have on my Zabbix Server. So from each host I get the total disk space and I want to sum it all up into one single number.

Here’s what I got so far:

Yep, a lot of hosts. Now how do I sum this monstrosity into one number? I’ve tried sumSeries() but it adds up all the historical values as well, so i end up with Exabytes of data - not to mention that it adds it up for each host individually, so the view stays the same and it is not by any means a single number.

I’ve been racking my brain for quite a while now and haven’t come up with any new ideas.
Any help much appreciated!

Did you try the first example from Zabbix documentation:

Example 1

Total disk space of host group ‘MySQL Servers’.

sum(last_foreach(/*/vfs.fs.size[/,total]?[group="MySQL Servers"]))

source: 1 Aggregate calculations

1 Like

Can’t believe I didn’t think of that.. Exactly what i wanted, thanks!