Ad Widget

Collapse

Action condition: only if trigger x =OK AND trigger y=WARNING

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Linuxmail
    Junior Member
    • Feb 2016
    • 9

    #1

    Action condition: only if trigger x =OK AND trigger y=WARNING

    hi,

    I have configured a trigger for a LOG item which executes an action script (sending notification via Pushover).
    The trigger is configured, with nodata(30).

    I have a second Item (trapper) with trigger, for a small shellscript, which lets the devops sending "enable" or "disable" via zabbix_sender.

    Enable means = Execute all actions (sending Pushover messages) .... = OK
    Disable means = We are doing our best, please don't spam us. = WARNING (so we don't forget to enable the alert messages)

    Now I want:

    Only execute the action (sending mail / Pushover), if trigger "Trigger Alert status" = enable (means 0 / OK)

    That is, what I have.

    Type of calculation: AND

    A Maintenance status not in maintenance
    B Trigger value = PROBLEM
    C Trigger severity = Warning
    D Trigger name not like Trigger Alert status
    E Trigger = server.foo.local: Trigger WebApp Err=-5000

    What ever I tried, it doesn't work. The action is executed

    The reason: Our App sending also emergency mails, and to disable the mails, a file is touched. With the same script, I use the zabbix_sender. In that way, the devops doesn't need to be login into Zabbix and do anything else, but Zabbix.

    All things works well, but not to disable temporally the action script, with the helper item/trapper.

    Any suggestions?
  • Linuxmail
    Junior Member
    • Feb 2016
    • 9

    #2
    Solved ...

    hi,

    since there was no real solution .. I helped me to use the trapper item as dependency for the log item. In the case the trapper item is in warning state, no trigger is executed from the log item.
    Not want I wanted, but it's O.K.

    Comment

    Working...