Ad Widget

Collapse

echo {HOST.IP1} {HOST.IP2} {HOST.IP3}returns same value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mma
    Member
    • Apr 2010
    • 39

    #1

    echo {HOST.IP1} {HOST.IP2} {HOST.IP3}returns same value

    Hi,

    I have a big issue, I migrate zabbix 1.8 to zabbix 2.2 manually, and I would use {HOST.IP1} and {HOST.IP2} for internal and external IP.
    But this two macros return the same value in global script !

    Can someone help me please ?

    PS : Maybe the same think as https://www.zabbix.com/forum/showthr...hlight=host.ip
    PS2 : version 2.2.1
    PS3 : OK, I understand many think, as external check and simple check do not support IP.HOST macro... So many items can't work on my templates. I hope the work on macro will be continued to support it.
    Attached Files
    Last edited by mma; 05-03-2014, 16:12.
  • aink999
    Junior Member
    • Jul 2011
    • 11

    #2
    Same issue

    Same issue anyone ?

    Comment

    • ingus.vilnis
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Mar 2014
      • 908

      #3
      Hi,

      Please have a look at the documentation and see what actually the HOST.IP<1-9> macros do. https://www.zabbix.com/documentation...ed_by_location
      The numbered macro syntax of {MACRO<1-9>} is used to reference hosts in the order in which they appear in a trigger expression. Thus, macros like {HOST.IP1}, {HOST.IP2}, {HOST.IP3} will expand to the IP of the first, second and third host in the trigger expression, providing the expression contains those hosts.
      Therefore in your case only the IP of the default interface will be displayed.

      Best Regards,
      Ingus

      Comment

      Working...