Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-11481

In some cases the server or proxy does not resolve macros in host interfaces

XMLWordPrintable

      Configuration:

      host name:         127.0.0.1
      host visible name: dns
      
      Zabbix agent main interface:
      IP:  {HOST.HOST}
      DNS: {HOST.NAME}
      

      1st case:

      Action message:
      {ITEM.NAME} : {ITEM.KEY}
      
      Item name:
      item {$M} $1 $2 $3 $4 $5 $6 $7
      
      Item key:
      item[{$M}, {HOST.CONN}, {HOST.IP}, {HOST.DNS}, {HOST.HOST}, {HOSTNAME}, {HOST.NAME}]
      
      Generated message:
      item host-macro host-macro {HOST.HOST} {HOST.HOST} {HOST.NAME} 127.0.0.1 127.0.0.1 dns : item[host-macro, {HOST.HOST}, {HOST.HOST}, {HOST.NAME}, 127.0.0.1, 127.0.0.1, dns]
      
      Expected:
      item host-macro host-macro 127.0.0.1 127.0.0.1 dns 127.0.0.1 127.0.0.1 dns : item[host-macro, 127.0.0.1, 127.0.0.1, dns, 127.0.0.1, 127.0.0.1, dns]
      

      2nd case

      Poller can't process items with such interface:
      Get value from agent failed: gethostbyname() failed for '{HOST.HOST}': [1] Unknown host
      

            Unassigned Unassigned
            sasha Alexander Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: