Ad Widget

Collapse

One trigger for a couple of item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TEmplarDD
    Junior Member
    • Aug 2014
    • 3

    #1

    One trigger for a couple of item

    Hie everybody!

    Sorry for my English, but any way a try to explain my thoughts.
    The question sound like is it possible to create a trigger/trigger template which will be work with a couple of items?

    For example.
    a have server SA with user items var1, var2 and var3
    if it possible to create trigger with condition like

    {SA:{any_var}.nodata(200)}=1

    Thank you any way.
    Best Regards, Vladimir
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    I think that you read documentation already, but missed the part about "Trigger Expression"
    Sincerely yours,
    Aleksey

    Comment

    • TEmplarDD
      Junior Member
      • Aug 2014
      • 3

      #3
      Thank you for your replay, Alexey.

      Actually, i read about it and now i understand that a can use expression like

      ({SA:var1.nodata(120)}=1)|({SA:var2.nodata(120)}=1 )|({SA:var3.nodata(120)}=1)

      but if i have about 50 items should i enumerate all of them in my trigger or i can do it simpler?

      Thank you
      Best regards, Vladimir

      Comment

      • aib
        Senior Member
        • Jan 2014
        • 1615

        #4
        Are you going to create one ultimate trigger which fill fire up when any of controlled hosts will down for 2 minutes?

        What is the goal of that complicated expression?

        Because if you even have the trigger for more than two hosts, you still have to configure the individual triggers for each host.
        Otherwise, how you will sort out which host is in trouble?
        Last edited by aib; 25-08-2014, 21:13.
        Sincerely yours,
        Aleksey

        Comment

        • TEmplarDD
          Junior Member
          • Aug 2014
          • 3

          #5
          The idea was to create a trigger for template which check all template's items for nondata(120).

          And i thought, it would be simpler to create one trigger with 50 expression instead of 50 triggers with 1 expression.

          Any way, i want to send message, if the trigger fired up. And using such macros as {ITEM.NAME} {HOST.NAME} {ITEM.KEY} {ITEM.VALUE} i can get host name and item name.
          But now the problem is how to get those expression in trigger that return "true" value.

          Comment

          • aib
            Senior Member
            • Jan 2014
            • 1615

            #6
            Originally posted by TEmplarDD
            The idea was to create a trigger for template which check all template's items for nondata(120).

            And i thought, it would be simpler to create one trigger with 50 expression instead of 50 triggers with 1 expression.
            It's not always true.
            When you create LLD, you can create a trigger prototype, and then discovery process creates as many triggers as many items will be created.

            But if you have to do it manually, you're right, it will be PITA.
            Sincerely yours,
            Aleksey

            Comment

            Working...