Ad Widget

Collapse

cross host trigger logic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ds16
    Junior Member
    • Sep 2014
    • 7

    #1

    cross host trigger logic

    hello,

    i'm completely new to zabbix, we are evaluating v2.0.

    i apologize in advance for (probably) a basic question, but i wasn't able to find an answer neither in the manual nor in this forum...

    my question: is it possible to configure a trigger that checks its condition for all the hosts in the template, and fires only if ALL the hosts match this condition.

    example: i want to fire a trigger only if: for all the hosts related to my template, the CPU usage is > 90%. if there is at least one host with CPU usage 89% (while all the rest could be > 90%), i don't want this trigger to be fired at all.

    currently i tried to create a template trigger, but i see it fired separately for each and every host with CPU usage > 90% ...

    i do not want to define triggers for each and every host and then create a dependency trigger on top of those, since i don't know in advance what (and how many) hosts i have.

    please your advice, what am i missing?

    thanks a lot,
    ds16
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello and welcome!

    Take a look at our documentation here: https://www.zabbix.com/documentation...ypes/aggregate and see if aggregate checks could help you achieve your goal. In such way you can collect the average CPU usage of the whole host group and then create a trigger that fires when it goes over 90%.

    You said that you are evaluating version 2.0. Is that a new installation? Just for you to know that the latest stable version of Zabbix is 2.2.6 and the new 2.4 is to be released soon. You might consider using one of them instead of 2.0.x.

    Best Regards,
    Ingus

    Comment

    • aib
      Senior Member
      • Jan 2014
      • 1615

      #3
      I think that function grpmin will be better.
      "Fire a trigger if grpmin["MySQL Servers","system.cpu.load[,avg1]",last,0]>89"
      Sincerely yours,
      Aleksey

      Comment

      • ds16
        Junior Member
        • Sep 2014
        • 7

        #4
        Ingus/Aleksey

        many thanks for answering me. indeed an aggregation function did the job, i used grpsum. the answer was in the manual after all, thank you for pointing to it...

        as for the version we are going to use, we will for sure move to the latest stable one, once we are done with our poc-level tests done on v2.0

        ds16

        Comment

        • ds16
          Junior Member
          • Sep 2014
          • 7

          #5
          hi once again,
          i have a similar question: is there a way to define a trigger that checks a certain item had no data (nodata) for a certain period of time for all the hosts in the group, without specifying the hosts? i wasn't able to find any aggregate function for that...
          thanks,
          ds16

          Comment

          Working...