[ZBX-10178] action sends e-mails while host is in maintenance Created: 2015 Dec 18 Updated: 2017 May 30 Resolved: 2015 Dec 21 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 2.4.5 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | itcbsops | Assignee: | Unassigned |
Resolution: | Won't fix | Votes: | 0 |
Labels: | conditions, duration, escalations, maintenance, step | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Production, Linux |
Issue Links: |
|
Description |
Here is what is going on. 1) trigger value switched to "Problem" at 2015-12-18 08:57:21, generating an event (ID = 734038) What I have noticed is : A) escalation step continues to increment and emails to be sent, and yet there is a condition "maintenance status is not in maintenance". The condition is ignored, probably because the action "loop" started before the host was set to maintenance. That behaviour is odd. B) a change in the step duration is effective only after the initial step duration is elapsed. ie. If I switch the step duration from 3600 seconds to 60 seconds, it takes 1 hour before the step duration switches to 60 seconds... C) the step increment stops if I disable the host and enable it again after a few minutes. In other words, the strange behaviour described in (A) is fixed by disabling / enabling the host : the action's condition "maintenance" is now effective |
Comments |
Comment by Aleksandrs Saveljevs [ 2015 Dec 18 ] |
Indeed, function check_escalation() in src/zabbix_server/escalator/escalator.c does not recheck whether host is in maintenance and neither does it check other action conditions like "Trigger severity", etc.: /****************************************************************************** * * * Function: check_escalation * * * * Purpose: check whether the escalation is still relevant (items, triggers, * * hosts, and actions are still present and were not disabled) * ... We shall discuss whether this is by design or not. |
Comment by richlv [ 2015 Dec 18 ] |
that is by design. "maintenance does not stop active escalations", citing from the zabbix training |
Comment by Aleksandrs Saveljevs [ 2015 Dec 21 ] |
Thanks, richlv! Indeed, it is already documented at https://www.zabbix.com/documentation/2.4/manual/config/notifications/action/escalations . |
Comment by itcbsops [ 2016 Feb 05 ] |
Hi, Thanks very much for the answer. Last night again, we had the following :
When you setup a maintenance, you don't want the action to continue sending e-mails. Would it be possible to upgrade this case to feature/improvement request ? |
Comment by Aleksandrs Saveljevs [ 2016 Feb 08 ] |
There is another similar request at |
Comment by itcbsops [ 2016 Feb 15 ] |
I agree, the case seems similar. |