Ad Widget

Collapse

Mass update inventory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poessibility
    Junior Member
    • Oct 2022
    • 7

    #1

    Mass update inventory

    Good morning!
    We have > 4k devices, where we can't install the agent (SOC displays) - the monitoring is software driven by an external script via the API.
    The information we get from this script is used to create a device, to assign a hostgroup and a template.
    I would now like to update the inventory with e.g. mail address and customer site.
    Is there a way to import this information from a csv file to existing hosts? Zabbix Version is 6 LTS

    Thank you!
  • guille.rodriguez
    Senior Member
    • Jun 2022
    • 114

    #2
    CSV + Bashscript (for loop) + Zabbix Api

    Comment

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

      #3
      CSV -> (insert your favourite scripting language here) -> API..

      Comment

      • poessibility
        Junior Member
        • Oct 2022
        • 7

        #4
        Well ... thank you :-)
        I was hoping there would be a function for this without having to deal with json API and such.

        Comment

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

          #5
          If each of your hosts has a file with the appropriate info, you can add couple of items to pull that info and populate inventory...

          Comment

          Working...