[ZBXNEXT-3340] Allow for actions to be placed under maintenance periods to avoid processing of the action Created: 2016 Jul 18  Updated: 2018 May 22

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F), Server (S)
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Trivial
Reporter: James Cook Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: actions, maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The request is to have the ability to place actions under a maintenance period in order to not have the action processed at all during the date/time..

The reason is that sometimes you would like to only like to disable the processing of an action during a particular date/time periods automatically rather than manually disabling / enabling the action.

Periodic change windows would be an example of where this would be applied or school holidays for an education related organisation.

The other benefit is that you could target individual triggers actions to be in maintenance rather than putting the host into maintenance where all the triggers would be disabled.



 Comments   
Comment by Oleksii Zagorskyi [ 2016 Jul 18 ]

An action condition "Time period" could resolve your requirements.

As for the very last sentence - there is a separate feature request ZBXNEXT-413.

Comment by Aleksandrs Saveljevs [ 2016 Jul 18 ]

"Time period" is indeed one of the possible approaches, but it seems that it is not enough in the general case (like school holidays in the example).

Comment by James Cook [ 2016 Jul 19 ]

Thanks oleksiy. I have used the time period condition when I expect something to only occur within a weekly basis. Sometimes you need to specify actions to be disabled on a fortnightly or monthly basis of for start to end periods like holidays etc...

I have viewed previous requests for individual trigger maintenance and as mentioned this would somewhat allow for suppressing any output from the individual trigger firing as a side effect (depending on action configuration).

Comment by Pascal Uhlmann [ 2017 Nov 06 ]

We need something like this, too. The actions normally should be started out of the working hours which are actually configured using time periods. This works good. But if there is a holiday it should be started the whole day. So within the action condition we need a possibility to check if the day is a local holiday. I could imagine the following solutions:

  • Configuration of holidays and similar days.
    • With this you can add dates or date ranges and define it as holiday. A more flexible way is use categories and one of them would be "holiday".
    • Then within the action condition there could be something like this:
      Holiday=True

      or

      DayCategory="holiday"
  • Configure a script within the AlertScriptsPath.
    • Zabbix will execute the script with the event's timestamp and optionally additional parameters (for example a day category) and compare the script's return value.
Comment by Pascal Uhlmann [ 2018 May 22 ]

Maybe ZBXNEXT-537 would be a suitable solution.

Generated at Thu Apr 25 16:04:10 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.