Ad Widget

Collapse

Zabbix discovery preprocessing item value not appears in first time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Piotr_Szczupakowski
    Junior Member
    • May 2025
    • 2

    #1

    Zabbix discovery preprocessing item value not appears in first time

    Hello

    I have a problem. I created a discovery for json with preprocessing. Everything works but... When discovery creates an item for new values ​in json, the first time its value is empty. Only after the second value received does the value appear. It looks like the item is created but it doesn't process it the first time​.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    I think that is "feature"... first run it has no place to store the data as item is not there yet... item is created and with next run there is a place to store data...

    Comment

    • Piotr_Szczupakowski
      Junior Member
      • May 2025
      • 2

      #3
      Well, from another forum it appears that this was the intention when designing it. In my opinion, this is a mistake.

      Such an example
      If a guard receives an order to kill every intruder and after seeing the first one he aims his weapon, reloads and cocks it and... does not shoot. Only the next intruder is shot, then something is wrong

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        "Locating and shooting an intruder" can be the same as "discovering and creating an item" ..
        "locating and shooting and retrieving a body", that would be "discovery, create and save a value for and item"... if we look for analogy. Cannot retreive a body, if you have not shot it first.. Morbid examples..

        Anyway, I can understand your point, but unfortunately, that thing is as it is..
        I kind of remember something somewhere in the forum on the topic, there might even be a feature request somewhere... but where and what exactly, I cannot remember.

        Comment

        Working...