[ZBX-14875] Escalations for autoregistration and discovery are not immediately deleted Created: 2018 Sep 19 Updated: 2018 Nov 02 Resolved: 2018 Nov 02 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 3.4.14, 4.0.0beta2 |
Fix Version/s: | 3.4.15rc1, 4.0.2rc1, 4.2.0alpha1, 4.2 (plan) |
Type: | Problem report | Priority: | Minor |
Reporter: | Vladislavs Sokurenko | Assignee: | Vladislavs Sokurenko |
Resolution: | Fixed | Votes: | 0 |
Labels: | autoregistration, escalations | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Issue Links: |
|
||||||||
Team: | Team A | ||||||||
Sprint: | Sprint 43, Sprint 44, Sprint 46, Nov 2018 | ||||||||
Story Points: | 2 |
Description |
On clean database perform auto registration and then do: Examine nextcheck and see that escalation will be kept for one hour and that it's status is active. +--------------+----------+-----------+---------+-----------+------------+----------+--------+--------+---------------+ | escalationid | actionid | triggerid | eventid | r_eventid | nextcheck | esc_step | status | itemid | acknowledgeid | +--------------+----------+-----------+---------+-----------+------------+----------+--------+--------+---------------+ | 6 | 8 | NULL | 11 | NULL | 1537346473 | 1 | 0 | NULL | NULL | +--------------+----------+-----------+---------+-----------+------------+----------+--------+--------+---------------+ Following parts of code will never be executed on Zabbix server if (0 == action->esc_period) { result = DBselect( "select o.operationid,o.operationtype,o.esc_period,o.evaltype," "m.operationid,m.default_msg,m.subject,m.message,m.mediatypeid" " from operations o" " left join opmessage m" " on m.operationid=o.operationid" " where o.actionid=" ZBX_FS_UI64 " and o.operationtype in (%d,%d)" " and o.recovery=%d", action->actionid, OPERATION_TYPE_MESSAGE, OPERATION_TYPE_COMMAND, ZBX_OPERATION_MODE_NORMAL); } ... if (0 == action->esc_period) { escalation->status = (ZBX_ACTION_RECOVERY_OPERATIONS == action->recovery ? ESCALATION_STATUS_SLEEP : ESCALATION_STATUS_COMPLETED); } .... Expected: |
Comments |
Comment by Vladislavs Sokurenko [ 2018 Oct 31 ] |
Fixed in:
|