Send data to Zabbix

Hi All,

I’m happy to build this one, but would like to gauge people interest first. The current Zabbix component only allows for data to be retrieved from zabbix, however I feel it would be useful to be able to report data from HA sensors (e.g. Z-wave) back to Zabbix for alerts, etc. This could be done in a similar fashion to influxdb, but would require items to be manually enabled before they would be sent (as Zabbix requires items to be created manually)

What are people’s thoughts on this?

Thanks

Sounds nice.

Zabbix doesn’t technically need to have the items created beforehand though. It could work using autodiscovery where it would query an endpoint in HA (like the API endpoint for Google Assistant) to gather the available items and would create them automatically.

1 Like

You’re thinking low level discovery, which might also work (not sure if it can do it without the agent/only with the sender, I’ll have to check)

It should not require an agent. Besides, there is a Python package that contains the agent protocol making it easy to “make” an agent if needed :slight_smile:

Did you look into this? I have had the need for quite a while. At the moment I have set up a few items as trappers and use a cron job to fetch data from Home Assistant and send it to Zabbix. In most cases that is a good enough process, but in some cases it would be a lot better with an event driven system.

For example; I have a z-wave power meter that reads an outlet that uses > 2kW when in use, and otherwise 0. It’s normally used less than a minute at a time, so the data in my Zabbix gets quite inaccurate in that case.

To me, an option to send all updates to Zabbix trapper items would be a good enough solution.

I’m new in HA but I interested in integration with Zabbix too to send sensor’s data by some triggers. As I remember, Zabbix have 2 types of agents - active and passive. I guess that the active agent will be useful, because it allows to send data to Zabbix and can be included in HA integrations.
It should enable to specify for each sensor or sensor type:

  • message format
  • should have a limit how often notification can be sent to Zabbix

I’m still working on this when I have time, however currently my solution isn’t very stable and has fairly regular issues with sending the data.

I do have a working solution for pulling data from Home Assistant into Zabbix, which is currently being reviewed by the Home Assistant devs. Hopefully this should be done in time for the next release.

This would have been great! Any news regarding the solution?