Zabbix graph of item from different hosts

How can I get Zabbix to display the same item from multiple hosts in a single graph? I wish to compare the item on different hosts.


Solution 1:

You can create a custom graph that pulls items from multiple hosts. The graph however will be associated with a host, in which case you could create a phantom host which you can associate the graph with. Configuration -> Hosts -> Graphs (in the host you want the graph to be associated with). When you add your Graph items you can selected the host from which each item comes from.

Alternatively there are aggregate hosts available as well. These allow for the accumulation of items across all hosts in a host group.

Solution 2:

Since Zabbix 2.4 you may also simply mark such items from the latest data page and display an ad-hoc graph. There is no built-in way to save such graph - but if you would like to revisit it later, you can copy the URL to it. See Zabbix manual for more information : https://www.zabbix.com/documentation/2.4/manual/config/visualisation/graphs/adhoc

Solution 3:

From Zabbix 4.0 onwards, it is now possible to create dashboard graphs that show information for multiple hosts, without having to jump through the hoops described in earlier answers.

Solution 4:

Alternative: If your graphs are busy and hard to distinguish multiple hosts, or if you don't want to create the graphs manually, you can also create a screen, and put multiple graphs on the screen each from different hosts (e.g. the standard graphs so you don't have to roll your own).