Ad Widget

Collapse

how set perod time for trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mixmox
    Member
    • Apr 2020
    • 54

    #1

    how set perod time for trigger

    Hello
    im working on template that will check load and send notofy if it pass the line

    {TMP Linux:system.cpu.load[all].last()}>12

    question is if i want this trigger send alarm if load was upper than 12 for 5 min, send notify. not just of it pass 12 for a while
  • mixmox
    Member
    • Apr 2020
    • 54

    #2
    how can i have last and min together ?

    the trigger will checl last value:
    {TMP Linux:system.cpu.load[all].last()}>12

    for another check (for period) i have to add & like:
    {TMP Linux:system.cpu.load[all].last()}>12
    &
    {TMP Linux:system.cpu.load[all].min(5min))}>12 ???

    Comment

    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #3
      If I understood you correctly, you don't need last() at all, you need what splitek suggested and you need the following expression:
      Code:
      {TMP Linux:system.cpu.load[all].min(5m)}>12
      This reads: "when a value comes in, calculate the minimum over last 5 minutes and if that will be over 12 - fire the alarm".

      Comment

      • mixmox
        Member
        • Apr 2020
        • 54

        #4
        Originally posted by dimir
        If I understood you correctly, you don't need last() at all, you need what splitek suggested and you need the following expression:
        Code:
        {TMP Linux:system.cpu.load[all].min(5m)}>12
        This reads: "when a value comes in, calculate the minimum over last 5 minutes and if that will be over 12 - fire the alarm".
        should i change agent checking time?
        ive set agent check every 15 min

        Comment

        • dimir
          Zabbix developer
          • Apr 2011
          • 1080

          #5
          Yes, every minute would be fine.

          Comment

          • RichardsRoad
            Junior Member
            • Jan 2021
            • 1

            #6
            Originally posted by mixmox
            Hello
            im working on template that will check load and send notofy if it pass the line

            {TMP Linux:system.cpu.load[all].last()}>12
            Tellpizzahut

            question is if i want this trigger send alarm if load was upper than 12 for 5 min, send notify. not just of it pass 12 for a while
            I'm wondering if there is a way to setup triggers in zabbix to be dependent on the time period. I know this can be done with actions,
            Last edited by RichardsRoad; 28-01-2021, 11:46.

            Comment

            Working...