Ad Widget

Collapse

Autofix Problems with Zabbix Actions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbattical
    Junior Member
    • Jul 2022
    • 6

    #1

    Autofix Problems with Zabbix Actions

    Hi,

    i'd like to Autofix alarming Problems in Zabbix with Actions and don't know if this is possible like i vision it.

    Since i got some alarms where i can fix the issue with a script, i 'd like to create the following workflow:

    - Problem appears on zabbix monitored server
    - Trigger is Alarming
    - Action is started because of Trigger
    - Action starts script which solves problem on monitored server
    - Problem is gone

    At first look this should work.

    But maybe i have the Case that the Service Fails, the Script restarts it, Alarm clears but the service failes again after some minutes, Alarm is triggerd, action started, service ok again, fails after some minutes, action is triggered and so on and on.
    Then i maybe miss a Problem because of the Autofix Action because the problem is only visible for a very short time in zabbix.
    So i would like to only do the action 3 times withhin 30 minutes or so and if it happens more than that i need the Alarm to stay so i'm able noticing it.

    Is this somehow doable with zabbix?​
  • zabbattical
    Junior Member
    • Jul 2022
    • 6

    #2
    I'm Using Zabbix 4.0.14

    Comment

    • SanMonitor
      Member
      • Aug 2022
      • 48

      #3
      There's maybe other ways to do this but a possible solution would be to create a 2nd trigger that only triggers when the service has failed multiple times in a set period of time.
      You can then create a dependency between the already excisting trigger and this one. Then make sure the action is only triggered on the first one (maybe use severity to differenciate)

      Comment

      Working...