Ad Widget

Collapse

How to obtain host location in a template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bboy8012
    Junior Member
    • Oct 2020
    • 12

    #1

    How to obtain host location in a template

    Hi All,

    I have 1 template that grabs the snmp location of a host and adds it to the hosts' inventory location. I have another template trying to get the results of host inventory location and do a lookup of it, but I can't get it to populate the host inventory location automatically.

    I've tried using INVENTORY.LOCATION macro but I'm not getting any results. Can anyone point me in the right direction? Thanks

    Click image for larger version

Name:	zabbix-template-mac.png
Views:	248
Size:	11.1 KB
ID:	488968
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Inventory macros cannot be used there..
    only in following places.
    → Trigger-based notifications and commands
    → Problem update notifications and commands
    → Internal notifications
    Tag names and values
    → Map element labels, map URL names and values
    → Manual event action scripts
    → Description of item value widget

    Comment

    • bboy8012
      Junior Member
      • Oct 2020
      • 12

      #3
      Is it possible to get some guidance on how to accomplish this. All I'm trying to do is lookup the location of the host and have the HTTP template URL call it. Thanks

      Comment

      Working...