Ad Widget

Collapse

Exclude from trigger actions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zaw
    Junior Member
    • Aug 2023
    • 5

    #1

    Exclude from trigger actions

    Hello,
    im running latest build of zabbix 7. Ive created custom host for web monitoring with custom external script. Ive also created custom triggers with custom message. And everything works..almost. We got universal tirgger action 'Report problems to Zabbix administrators' which is supposed to send all issues to admin alias email, except exluded ones. However, the exclusion doesnt work... Here is how it looks:
    Click image for larger version  Name:	obraz.png Views:	0 Size:	22.0 KB ID:	492854
    So it should report everything, except A-E things listed here. However, its keeps sending emails... If i disable this Action, emails are not sent so i think this is the issue, but i got no idea what issue. Tried to google or ask chatgpt for solution, but none worked. Or if the issue lies somewhere else.. where should i look / how to track whats triggering the notification even tho ive set the exclusions? The Web monitoring host is not included in any template. I dont want it spamming general notification, only custom one from another action...
    Last edited by zaw; 16-10-2024, 15:43.
  • ISiroshtan
    Senior Member
    • Nov 2019
    • 324

    #2
    With logical OR, if any condition matched it will send notification. So lets say host "Web monitoring" has fired alert. Condition E would be false, yes. But is it "Zabbbix server: Timestamp changed" from condition B? No, it's not, so condition B is True. So you would have "False or True or False or False or False". You have one True, OR condition satisfied, alert send.

    If I understood you ask properly, you want to replace all OR with AND. That way only if ALL conditions A-E are satisfied and TRUE would alert be sent.

    Comment


    • zaw
      zaw commented
      Editing a comment
      uh, ok i guess.. i get it and its pretty annoying to configure mutliple exceptions then i guess
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #3
    Logic is never easy..

    Comment

    • zaw
      Junior Member
      • Aug 2023
      • 5

      #4
      well, it should be easy, but its pretty limited in here... could use simple 'if any of below fits, dont send' and one could think doing A or B or C etc would do, but no. need to write whole essay to make 5 exclusions.

      Comment

      • ISiroshtan
        Senior Member
        • Nov 2019
        • 324

        #5
        There are ways you can simplify the process, tho majority of them depends on exact infrastructure setup and task you try to solve.

        You can designate special tag, and if said tag is present to not send notification. Now you can add said tag to host - no alerts from it will be notified, or add it to specific triggers to not send only those alerts specifically...

        ​​​​​You can actually setup proper user permissions and only send notification to specific users that are responsible and have access to those servers...

        Your question was not how to optimize it, but how to get a specific scenario to work. Answer is given specifically to that question

        ​​

        Comment

        • zaw
          Junior Member
          • Aug 2023
          • 5

          #6
          Originally posted by ISiroshtan
          There are ways you can simplify the process, tho majority of them depends on exact infrastructure setup and task you try to solve.

          You can designate special tag, and if said tag is present to not send notification. Now you can add said tag to host - no alerts from it will be notified, or add it to specific triggers to not send only those alerts specifically...

          ​​​​You can actually setup proper user permissions and only send notification to specific users that are responsible and have access to those servers...

          Your question was not how to optimize it, but how to get a specific scenario to work. Answer is given specifically to that question

          ​​
          oh, thanks for idea with tags! havent thought about it, now it sounds stupid simple. will give it a shot

          Comment

          Working...