Ad Widget

Collapse

macro {TRIGGER.KEY} for 2nd item, how??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bee
    Senior Member
    • Jun 2007
    • 133

    #1

    macro {TRIGGER.KEY} for 2nd item, how??

    Hi,
    I'm confusing about send correct message on action. Please take a look below real case situation:

    Situation:
    Most of server comes with redundant powersupply(PS), and i'm using ZABBIX to monitor the status of both PS via SNMP value. Let say psstatus.1 and psstatus.2. Now i would like to monitor both of PS unit and will alert me when one of those unit's != 3

    Trigger:
    Create trigger like this:
    Code:
    {server1:psstatus.1.last(0)}#3 | {server1:psstatus.2.last(0)}#3
    Action:
    I'm create an action with message below:
    Code:
    SEVERITY:{TRIGGER.SEVERITY} - Event on {DATE} at {TIME}, {ITEM.NAME} for {HOSTNAME}({IPADDRESS}) has changed to {{HOSTNAME}:{TRIGGER.KEY}.last(0)}
    Problem:
    When psstatus-1's value changed, message reflect the correct situation/condition. But when psstatus-2's value changed, macro {ITEM.NAME} substitute with psstatus-1. I know, this is a correct behavior of {ITEM.NAME} macro, but is there any way to changing this behavior? So when psstatus-2's value changed, then macro {ITEM.NAME} will substitute with psstatus-2 correctly?


    taken from zabbix 1.4 release 012 document:
    Code:
    [I]{TRIGGER.KEY}
    Key of [B][U][COLOR="Red"]first[/COLOR][/U][/B] item of the trigger which caused a notification. [/I]
    Code:
    [I]{ITEM.NAME}
    Name of [COLOR="Red"][B][U]first[/U][/B][/COLOR] item of the trigger which caused a notification.[/I]
    i believe, at least on my case, if this can be done will much more reduce number of action that need to be create.
    1 action for many monitored items?
    am i right?

    Is there any macro's suggestion for replacing {ITEM.NAME} and {TRIGGER.KEY} with?

    Thanks
    BEE
    Last edited by bee; 01-07-2008, 06:17. Reason: identify problem more detail
  • bee
    Senior Member
    • Jun 2007
    • 133

    #2
    Edited problem, any advice?

    I've edited problem in hope that problem will clearly identified.
    Any suggestion on this case?
    Thanks,
    BEE

    Comment

    • bee
      Senior Member
      • Jun 2007
      • 133

      #3
      no answer??
      any one??

      Developers, any suggestion? advice please? i think it worth to think about.

      Thanks,
      BEE

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        There is no way to get data for second, third and other items. There are no macros to achieve this yet.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        Working...