Ad Widget

Collapse

MQTT Plugin inside Agent2

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Wulz
    Junior Member
    • Mar 2023
    • 3

    #1

    MQTT Plugin inside Agent2

    Hello,
    i tried now the MQTT plugin inside agent2.
    Installed and configured like here: https://www.zabbix.com/de/integrations/mqtt

    Created a host with running active checks (green symbol near host in overview)
    other services/items are working (standard coming from templates to monitor the host).

    Now i tried to add a item like "get-mqtt-temperature" with the following settings:
    Type: zabbix agent (active)
    Key: mqtt.get["eu1.cloud.thethings.network:1883","v3/sometest@ttn/devices/wp-temp1/up","somueuser@ttn","#somekey#"]
    Type of information: Text
    Enabled: yes

    But the agent2 does not retrieve any topic data from the mqtt broker.
    side by side is run a MQTT Explorer on same MQTT broker, and it is getting fine updates of my topics. But zabbix does not show anything.

    I already tried to get the data from agent on commandline, but get the following error:
    Code:
    ZBX_NOTSUPPORTED: The "mqtt.get[tcp://eu1.cloud.thethings.network:1883,v3/sometest@ttn/devices/wp-temp1/up,someuser@ttn,#somekey#]" key is not supported in test or single passive check mode
    This i think maybe, because only active checks supported. But how i can test the MQTT plugin on commandline?

    regards
    Michael
  • Answer selected by Michael Wulz at 31-03-2023, 13:39.
    Michael Wulz
    Junior Member
    • Mar 2023
    • 3

    Hello, i think my Problem is solved!
    it was an typo inside my TOPIC. up i wrote "wp-temp1" and in fact it is "wp-temp-1".
    So everythink seems to be working now!

    Comment

    • Michael Wulz
      Junior Member
      • Mar 2023
      • 3

      #2
      Hello, i think my Problem is solved!
      it was an typo inside my TOPIC. up i wrote "wp-temp1" and in fact it is "wp-temp-1".
      So everythink seems to be working now!

      Comment

      • roteki
        Junior Member
        • Oct 2024
        • 11

        #3
        i have found this file /etc/zabbix/zabbix_agent2.d/plugins.d/mqtt.conf in which i have configured the options, then idk how to continue the configuration, I have read https://www.zabbix.com/fr/integrations/mqtt#mqtt but I couldn't understand quite well what must I do next
        if you can tell me please in details how to configure the plugin
        I'm using zabbix 7.0.5 btw

        Comment

        Working...