Ad Widget

Collapse

Macro with trigger with multiple items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roquesao
    Junior Member
    • Nov 2011
    • 1

    #1

    Macro with trigger with multiple items

    Hello

    I have a trigger with multiple items with this expresion:

    {host:tcp,11738.last(0)}=0 | {host:tcp,11761.last(0)}=0 | {host:tcp,11763.last(0)}=0 | {host:tcp,7895.last(0)}=0

    But when some of these ports not responds , I always receive the information of first item ,(host:tcp,11738.last(0)}=0) in this case, my macro is this way:

    {HOST.CONN}
    {TRIGGER.NAME}: {TRIGGER.STATUS}
    Last value: {ITEM.LASTVALUE}
    {ITEM.NAME}
    {TRIGGER.KEY}
    {TRIGGER.COMMENT}
    {TRIGGER.URL}

    Is there any way of receive the information of the correct fail item ?

    thanks in advance.
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    I think you can put a number in the end of your macro name:
    HOST.CONN<1-9>
    http://www.zabbix.com/documentation/.../config/macros
    Br
    Erik

    Comment

    Working...