Ad Widget

Collapse

Inventory Hosts fields not filled

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • befehl
    Junior Member
    • Feb 2023
    • 5

    #1

    Inventory Hosts fields not filled

    I just started with Zabbix 6.2.3 last week.
    Everything works well so far, but I don't get values from Host->Inventory displayed in the Inventory Tab.
    Host->Inventory is set to Automatic for all and I see the mapping e.g. from "Operating System" to "OS".
    I can see the Hosts at Iventory->Hosts but the field "OS" is not filled.
    Next try is to select the Host->Items->component os and select "Linux by Zabbix agent: Operating system".
    Selecting "Test" and "Get value" shows the value, so it works so far.
    On Items Tab of "Linux by Zabbix agent: Operating system" I select first "Clear history and trends" and then "Execute now" and "Update".
    But Inventory->Hosts the "OS" is still empty for the host.

    Next try is, going to Monitoring->Latest data and selecting my host and component os at Subfilter and then in the list below
    the checkbox for the host "Operating system" and select "Execute now". The response is "Request sent successfully".
    Back to Inventory->Hosts and the field OS is still empty.

    Any idea what else to try?
  • befehl
    Junior Member
    • Feb 2023
    • 5

    #2
    After trying many more possible solutions I finally have at least a work around by using "MassUpdate" and setting the fields used for Inventory to 30s. After about 1 minute all fields are updated and filled.

    Comment

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

      #3
      is the field "Populates host inventory field" set appropriately? Or is there "none"

      Comment

      • befehl
        Junior Member
        • Feb 2023
        • 5

        #4
        Yes, the field "Populates host inventory field" is set to "OS". I also tried different other inventory fields but no success.
        It feels like the change ist not propagated immediately. If I set the interval to 30 second it takes up to 1 minute.
        No wonder if I would set it back to 1 hour it might take up to 2 hours. That might be the case why I don't see any changes. But I haven't tested this. Just a guess.

        Comment

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

          #5
          Nope... if it collects, then it populates right away... Maybe you have "discard unchanged with heartbeat" in item config? I think in such case, populating may take place only in case of change.... But I may be wrong also..

          Comment

          • befehl
            Junior Member
            • Feb 2023
            • 5

            #6
            Indeed, the Items Preprocessing Tab has a Preprocessing step "Discard unchanged with heartbeat" set to one day ("1d"). But it is grayed out and I can't edit.
            Don't know when and how this was set. It must be active but how to disable it?
            Thanks for pointing this out.

            Comment

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

              #7
              If it is grayed out on host level, then you need to edit it on template level... Or you just wait until next day...

              Comment

              • befehl
                Junior Member
                • Feb 2023
                • 5

                #8
                I just changed on template level down to 1h which is good enough for me.
                Thank's for your help.

                Comment

                Working...