6

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.

walrii
  • 163
  • 1
  • 1
  • 5

4 Answers4

3

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.

Red Tux
  • 2,074
  • 13
  • 14
  • note that this is not entirely correct - a graph will only appear for hosts that actually have items included in that graph, thus creating a "phantom" host will not work - graph will never show for that host – Richlv Nov 17 '14 at 14:03
  • You can add calculated items to the "phantom" host, which refer to the actual host's items. That way the graph is displayed. – FuePi May 08 '15 at 09:05
3

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

Richlv
  • 2,334
  • 1
  • 13
  • 17
2

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.

Mark Hatton
  • 213
  • 1
  • 2
  • 7
1

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).

Linwood
  • 263
  • 1
  • 7