Hi,
I've searched for solutions how to monitor home automation items from mqqt with zabbix but I have some first steps problems so please can someone point me to right direction?
Here is my setup and wishes:
I have OpenHabian with Mqqt and Grafana on same Debian linux VM on my NAS to monitor and automate some home stuff. That is wotking fine. Now I installed Zabbix appliance 6.0LTS on separate VM as Zabbix server to monitor some other devices via SNMP. My idea is to connect that Zabbix server to mqqt on my OpenHabian server to collect informations from sensors and put that info on graphs, as Zabbix looks better for that than Grafana.
I found that zabbix-agent2 have built-in addon for mqqt so I will try to use that. But, problem is that documentation how to actually use it lacks some basic informarions about it...or I don't understand it.
So here are some questions:
- in my setup, where do I install zabbix-agent2 ? On my OpenHabian server, or on Zabbix server itself (as it is downloaded as appliance, it does not contain agent2)
- i tried install agent2 on OpenHabian server and add it to Zabbix server, but Zabbix does not even recognize that agent is installed on OpenHabian host
- mqqt.config for zabbix-agent2 is not so clear for me what exactly and how to configure as I cannot found any real example. https://www.zabbix.com/integrations/mqtt is not helpfull as there is no working examples so for example, I don't know what <session_name> means and to what should it match; what "Plugins.MQTT.Sessions.<session_name>.Topic" parameter should look like, and should all parameters be in some qoutes or not?
So, let say that I've have this thing configured in my OpenHabian:
Thing topic ikeasens_1 "IKEA Sensor #1" {
Channels:
Type number : pm25 "IKEASens1 PM25" [stateTopic="tele/tasmota_DBCEE1/SENSOR", transformationPattern="JSONPATH:$['VINDRIKTNING']['PM2.5']"]
So how would I need to configure Zabbix and zabbix agent2 (and where) to get that data on Zabbix graph?
Thanks in advance.
I've searched for solutions how to monitor home automation items from mqqt with zabbix but I have some first steps problems so please can someone point me to right direction?
Here is my setup and wishes:
I have OpenHabian with Mqqt and Grafana on same Debian linux VM on my NAS to monitor and automate some home stuff. That is wotking fine. Now I installed Zabbix appliance 6.0LTS on separate VM as Zabbix server to monitor some other devices via SNMP. My idea is to connect that Zabbix server to mqqt on my OpenHabian server to collect informations from sensors and put that info on graphs, as Zabbix looks better for that than Grafana.
I found that zabbix-agent2 have built-in addon for mqqt so I will try to use that. But, problem is that documentation how to actually use it lacks some basic informarions about it...or I don't understand it.
So here are some questions:
- in my setup, where do I install zabbix-agent2 ? On my OpenHabian server, or on Zabbix server itself (as it is downloaded as appliance, it does not contain agent2)
- i tried install agent2 on OpenHabian server and add it to Zabbix server, but Zabbix does not even recognize that agent is installed on OpenHabian host
- mqqt.config for zabbix-agent2 is not so clear for me what exactly and how to configure as I cannot found any real example. https://www.zabbix.com/integrations/mqtt is not helpfull as there is no working examples so for example, I don't know what <session_name> means and to what should it match; what "Plugins.MQTT.Sessions.<session_name>.Topic" parameter should look like, and should all parameters be in some qoutes or not?
So, let say that I've have this thing configured in my OpenHabian:
Thing topic ikeasens_1 "IKEA Sensor #1" {
Channels:
Type number : pm25 "IKEASens1 PM25" [stateTopic="tele/tasmota_DBCEE1/SENSOR", transformationPattern="JSONPATH:$['VINDRIKTNING']['PM2.5']"]
So how would I need to configure Zabbix and zabbix agent2 (and where) to get that data on Zabbix graph?
Thanks in advance.
Comment