Ad Widget

Collapse

Send e-mail notification for all but two type of events

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • surgeon_2022
    Member
    • Apr 2022
    • 56

    #1

    Send e-mail notification for all but two type of events

    Hi everyone.

    I have a trigger action configured
    Click image for larger version

Name:	image.png
Views:	93
Size:	52.0 KB
ID:	476919


    I am getting notification both for E anf D type of trigges
    What is the correct way of configuring trigger action to get all triggers for switches but two: "Link down" and "Optical power"?

    Regards
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Is there a case, when trigger name can contain both "vlan" (or "unavailable by ICMP ping") and "Link down" (or "optical power")? if not, then just drop D and E and you will get notifications when trigger name matches your 2 name condiftions...

    Its a bit easier if you use tags for triggers... "notify"-> "yes" or "notify" -> "no".... and all your action needs to do, is to check for one tag value..:P​

    Comment

    • surgeon_2022
      Member
      • Apr 2022
      • 56

      #3
      Originally posted by cyber
      Is there a case, when trigger name can contain both "vlan" (or "unavailable by ICMP ping") and "Link down" (or "optical power")? if not, then just drop D and E and you will get notifications when trigger name matches your 2 name condiftions...

      Its a bit easier if you use tags for triggers... "notify"-> "yes" or "notify" -> "no".... and all your action needs to do, is to check for one tag value..:P​
      Hi Cyber,
      Thanks for reply. In case if I remove D and E, I will get both of them in my e-mails. since I already have D and C. My intention was to get all triggers for host groups "Switch SNR" and "Switch D-Link" but "Link down" and "Optical power"
      I was thinking about tags, however I was not sure if this is a correct way of doing so.

      Is there any article I can read about "Expression" logic? Of course I know what or/and means however I am after the global logic of getting the final decision.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        Originally posted by surgeon_2022

        Hi Cyber,
        Thanks for reply. In case if I remove D and E, I will get both of them in my e-mails. since I already have D and C. My intention was to get all triggers for host groups "Switch SNR" and "Switch D-Link" but "Link down" and "Optical power"
        I was thinking about tags, however I was not sure if this is a correct way of doing so.

        Is there any article I can read about "Expression" logic? Of course I know what or/and means however I am after the global logic of getting the final decision.
        If you drop conditions D and E, you cannot get anything that relates to D.. your expression will probably work without "custom expression" also and will be something like "(B or C or G) and (A or B)" (it will reorganize letters there...)

        That logic is the usual one... AND-s and OR-s which resolve to TRUE or FALSE .... You can search for "truth table" in google, there are generators out there, which will display all possibilities of your logic expression.... like https://web.stanford.edu/class/cs103...th-table-tool/

        Comment

        Working...