I’m a Zabbix beginner looking for some guidance on how to "import" several hundred MQTT topics into Zabbix.
Below is an example of some MQTT topics and returned data. The plan is to create a csv with an item for each topic. The fields will include : MQTT broker, MQTT topic, preprocessing info (eg data type, JSON name)
N/c061/battery/512/Sense/Voltage {"value":null}
N/c061/battery/512/System/MinTemperatureCellId {"value":"1 ::1 "}
N/c061/512/System/MaxTemperatureCellId {"value":"1 ::2 "}
N/c061/battery/512/Info/MaxChargeVoltage {"value":13.800000190734863}
N/c061battery/512/System/MinCellVoltage {"value":3.296999931335449}
N/c062/battery/512/Sense/Voltage {"value":null}
N/c062/battery/512/System/MinTemperatureCellId {"value":"1 ::1 "}
N/c062/512/System/MaxTemperatureCellId {"value":"1 ::2 "}
N/c062/battery/512/Info/MaxChargeVoltage {"value":13.823424}
N/c062/battery/512/System/MinCellVoltage {"value":3.2934}
I’m using Zabbix 7.4 (freshly installed this week!) and an agent2 host to access MQTT data. The MQTT data is from Victron equipment.
What is the simplest and quickest way to get the items into Zabbix, given that I know little about Zabbix at the moment? Looks like writing a python script that uses the Zabbix api is one way to go. Not looking for detailed steps, just a general direction to head down ie is the python script the way to go
Thanks
Below is an example of some MQTT topics and returned data. The plan is to create a csv with an item for each topic. The fields will include : MQTT broker, MQTT topic, preprocessing info (eg data type, JSON name)
N/c061/battery/512/Sense/Voltage {"value":null}
N/c061/battery/512/System/MinTemperatureCellId {"value":"1 ::1 "}
N/c061/512/System/MaxTemperatureCellId {"value":"1 ::2 "}
N/c061/battery/512/Info/MaxChargeVoltage {"value":13.800000190734863}
N/c061battery/512/System/MinCellVoltage {"value":3.296999931335449}
N/c062/battery/512/Sense/Voltage {"value":null}
N/c062/battery/512/System/MinTemperatureCellId {"value":"1 ::1 "}
N/c062/512/System/MaxTemperatureCellId {"value":"1 ::2 "}
N/c062/battery/512/Info/MaxChargeVoltage {"value":13.823424}
N/c062/battery/512/System/MinCellVoltage {"value":3.2934}
I’m using Zabbix 7.4 (freshly installed this week!) and an agent2 host to access MQTT data. The MQTT data is from Victron equipment.
What is the simplest and quickest way to get the items into Zabbix, given that I know little about Zabbix at the moment? Looks like writing a python script that uses the Zabbix api is one way to go. Not looking for detailed steps, just a general direction to head down ie is the python script the way to go
Thanks
Comment