Ad Widget

Collapse

Zabbix create multiple problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • piotrl
    Junior Member
    • Jul 2020
    • 15

    #1

    Zabbix create multiple problems

    I am using Zabbix 5.0.2 I had created trigger with 3 conditions, two of them will be always true (they are there only because I need to send they value in alert message). If number of errors is greater than 0 trigger should fire. I checked multiple event generation because I want to get alert every time conditions are met. The problem is that I have 3 conditions and zabbix generate every time 3 problems instead 1. How can I accomplished to have one trigger, three conditions and one problem?

    Click image for larger version

Name:	2020-08-11_10h07_01.png
Views:	1148
Size:	25.6 KB
ID:	406786
  • batchen_regev
    Member
    • Aug 2018
    • 80

    #2
    remove
    Code:
     }
    from the end of the :
    >0 and
    <>1 and
    <>1

    check example :


    {zabbix:system.cpu.load[all,avg1].min(5m)}>2 and {zabbix:system.cpu.load[all,avg1].time()}>000000 and {zabbix:system.cpu.load[all,avg1].time()}<060000

    Comment

    • piotrl
      Junior Member
      • Jul 2020
      • 15

      #3
      Thanks for answer.

      You mean something like that? If yes it didn't help.

      Code:
      {server:error.quantity.last()}>0 and {server:error.message.regexp("(^abc123$)")}<>1 and {server:error.exception.regexp("(^abc123$)")}<>1

      Comment

      • batchen_regev
        Member
        • Aug 2018
        • 80

        #4
        Originally posted by piotrl
        Thanks for answer.

        You mean something like that? If yes it didn't help.

        Code:
        {server:error.quantity.last()}>0 and {server:error.message.regexp("(^abc123$)")}<>1 and {server:error.exception.regexp("(^abc123$)")}<>1
        Yes, like the example that is from zabbix docs.
        Did you delete and re added the template ?

        dont make changes as it goes sometimes it doesn't update
        Last edited by batchen_regev; 11-08-2020, 12:39.

        Comment

        • piotrl
          Junior Member
          • Jul 2020
          • 15

          #5
          It's not from template. All three items and trigger where added manually by me to the host. I tried to delete the trigger and add it again with above expreession but it didn't help. Every time I have three problems generated. For test I changed expression by removing one condition and after that two problems where generated (two conditions, two problems)..

          Comment

          • Hamardaban
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • May 2019
            • 2713

            #6
            set “problen event generation mode” from “Multiple” to “Single”

            Comment

            • piotrl
              Junior Member
              • Jul 2020
              • 15

              #7
              If I change it to single I won't be notified about next problems until trigger will be cleared. Example there are more than 0 errors - trigger is fired, next check there is still more than 0 errors and trigger should be fired again (with single it won't fire again)

              Comment

              • piotrl
                Junior Member
                • Jul 2020
                • 15

                #8
                OK, it looks that I figured it out.

                I've Added to expresion
                Code:
                and {server:error.quantity.nodata(1m)}=0
                and set recovery expression as
                Code:
                {server:error.quantity.nodata(1m)}=1
                . Problem event generation mode is set to single.

                After that changes I've got one problem generated which is automatic closed after 1 minute (for me it's ok) and because of that during next check Zabbix can fire trigger again (of course if problem still occures). For testing purpose item is check every 2 minutes.

                Comment

                Working...