[ZBX-10510] period condition in action configuration does not use event time Created: 2016 Mar 09  Updated: 2017 May 30  Resolved: 2016 Aug 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 2.2.11
Fix Version/s: 2.2.12rc1, 2.4.8rc1, 3.0.2rc1, 3.2.0alpha1

Type: Incident report Priority: Trivial
Reporter: Kazuo Ito Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: actions, conditions, timeperiod
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Zip Archive ZBX-10510_period_configuration_reproduce.zip    
Issue Links:
Duplicate

 Description   

according to documentation, period condition in action uses event time, but check_time_period() uses current time in check_action_contitions()

2 Conditions

Time period

in - event time is within the time period.
not in - event time is not within the time period.



 Comments   
Comment by Oleksii Zagorskyi [ 2016 Mar 10 ]

Usually the time period condition is evaluated right after (escalator wakes up every 3 seconds) an event has been created.
I don't see problems here.

Do you have some specific use case where it causes any problem?

kodai Action condition is evaluated by history syncer or timer process, then start escalation if the condition matches generated event. It think that action condition should use event time as described in the documentation.

zalex_ua Got it, thank you.

Comment by Kazuo Ito [ 2016 Mar 10 ]

Action condition

  • Time period not in 1-7,00:00-01:00
  • Trigger value = PROBLEM

Generated events 00:59:59

process_actions is reading the actions table by the number of events.
In the case of the following cases...

  • A lot of the event was generated
  • A lot of action has been registered
  • DB performance has deteriorated

Execution of check_action_contitions() <- 1:00 later

Comment by Alexei Vladishev [ 2016 Mar 14 ]

Zabbix must use event time as described in the documentation. It is clearly a problem that needs to be fixed.

Comment by Viktors Tjarve [ 2016 Mar 30 ]

Is it possible to provide the server log file from the occurrence of this issue?

JKKim OK. Please check the attached file.

viktors.tjarve Thanks.

Comment by Viktors Tjarve [ 2016 Mar 30 ]

Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-10510

Comment by Andris Zeila [ 2016 Apr 01 ]

Successfully tested

Comment by Viktors Tjarve [ 2016 Apr 01 ]

Released in:

  • 2.2.12rc1 r59226
  • 2.4.8rc1 r59227
  • 3.0.2rc1 r59229
  • 3.1.0 r59230
Generated at Thu Apr 25 03:38:51 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.