Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-6313

New MQTT Item Type Key needs a 'ignore retained' flag

    XMLWordPrintable

Details

    • Change Request
    • Status: Open
    • Medium
    • Resolution: Unresolved
    • 5.2.0
    • None
    • Agent2 plugin (N)
    • None
    • Zabbix 5.2.0 on CentOS 8

    Description

      Hi

      I'm starting to make use of the new MQTT Item Type, and hitting an issue.

      I'm using an MQTT to both populate a list for LLD to use to make individual items to monitor, as well as (obviously) to monitor items.

      I have some items that are only emitted once a day or less...

      Current behavior is to pull in retained items when either the MQTT Server is restarted or when Zabbix is restarted.   This works great for my MQTT item that populates the LLD list, as it should see everything recent/retained and create an item for it.

      But for the MQTT item that feeds the individual items, pulling in the retained items has the negative side effect that I cannot detect if an item has been published recently or not... that is, the nodata() will get reset every time Zabbix re-established a connection with the MQTT server...  So my "heartbeat" item that is only published 1x/day appears to be more recent than it truly is.

      It would be great if the mqtt[] key had an "ignore-retained" (or a "include-retained") flag so that the re-starts/re-connects didnt reset the timing on everything.

      Thanks

       

      Attachments

        Activity

          People

            MVekslers Michael Veksler
            d2inco David D
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: