Grafana and Zabbix

Hello, how are you? I have a question for you. I am working with Zabbix and Grafana. I am bringing data from Zabbix to show it in Grafana:
Query type: Metrics, Group: Zabbix, Host: Test, and the problem is in item. My items are in the format “Status ABFB” but I choose the ABFB from a global variable in Grafana… what I am not able to do is get the variable to be taken from within item… I tried with Status ${mac} but it does not work for me. Any ideas?
Thanks

Hello @carlossegala.
Could you give an example? I can’t quite understand your need.

Hi, yes. My idea is to use Grafana to see the data recovered in Zabbix. In Grafana I create global variables so I choose, for example: I have several OLTs and within each OLT several serial numbers of the ONTs connected to that OLT, depending on the OLT I choose, the serial numbers are ready… so far everything is fine-- then within each OLT I have several recovered data that are the value of tx, rx, etc. depending on the serial number I choose, I need to bring those related data.
For example, I choose the serial number C9059A7 and it will bring me the data of tx, rx, etc. of that serial number, if I choose another serial number that brings me the respective data, is that understood?

It’s possible to be some char on the variable causing trouble with the regex system of the plugin… Try using /Status ${mac:regex}/

Hi, I was doing it right Status ${mac} but the mac variable was coming to me wrong as @isaqueprofeta commented. I modified it in zabbix and that’s it. Thanks

1 Like