Ad Widget

Collapse

How wo implement a Global Away Mode for Email Notifications?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • S1ardust
    Junior Member
    • Sep 2026
    • 4

    #1

    How wo implement a Global Away Mode for Email Notifications?

    Hello,

    I have implemented Zabbix 7.4 in my Home-Network and set it up.
    To get alerts by email, I have selected the desired triggers and added the tag "SendMail" = "true" to them:

    Click image for larger version

Name:	Trigger-Tag.png
Views:	26
Size:	9.0 KB
ID:	517049

    I defined the condition in the Action accordingly:

    Click image for larger version

Name:	Action.png
Views:	26
Size:	10.2 KB
ID:	517050

    This is working fine, but I get too many emails during everyday use.
    I would like to receive only some alerts when I am "away".

    Therefore I thought about introducing an "AwayMode" tag, which I would add only to selected triggers, that already have the "SendMail" Tag:

    Click image for larger version

Name:	Trigger-Tag-2.png
Views:	31
Size:	11.1 KB
ID:	517048

    I would NOT touch the other Triggers and set "AwayMode" = "false".

    Ideally, I would like to have a single global switch that changes the notification behavior without having to modify individual triggers.

    Conceptually/Programmatically, I would want to achieve something like this:

    Code:
    if (Global "AwayMode" -eq  "true")
    {
        if ($SendMail -eq "true" and $AwayMode -eq "true") {
            Send E-Mail Alert
        }
    }
    else
    {
        if ($SendMail -eq "true") {
            Send E-Mail Alert
        }
    }​
    What would be the recommended way to implement this in Zabbix?

    Thank you!​
Working...