Ad Widget

Collapse

Host description in automatic inventory.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rogzon
    Junior Member
    • Oct 2023
    • 5

    #1

    Host description in automatic inventory.

    Hi!
    How can I create an Item in a zabbix host containing the host description?
    I would like to use that item to populate a field in automatic inventory.

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

    #2
    How your host description "appears" ?

    Comment

    • rogzon
      Junior Member
      • Oct 2023
      • 5

      #3
      I would like to use the description entered in the Description field of Host configuration.


      Click image for larger version

Name:	image.png
Views:	138
Size:	95.8 KB
ID:	472982

      Comment

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

        #4
        I understand what you want...
        But I want to know, how that "Backup server" reaches hosts "Description"? Just manually added? Then add it manually to inventory also, would be easier, than write a script item, that pulls description of your server over API and then your item updates inventory...

        And going API way, it would be better to run such a script externally (maybe once a day) and for all hosts... and update directly over API, not involve any item...

        Comment

        • rogzon
          Junior Member
          • Oct 2023
          • 5

          #5
          Okay, since I have all my host creation done with templates I just thought it would be nice to actually be able to use the {HOST.DESCRIPTION} macro.
          I can create a user macro that I can use in an Item to update Inventory but then I would have to enter the same Description twice, I was just trying to avoid any extra steps when creating Hosts.
          The macro {HOST.DESCRIPTION} can't for some reason be used in an item.
          Very well, I'll just enter the text in the inventory then...

          Thanks!

          Comment

          Working...