[ZBXNEXT-2141] Add maintenance status to the supported conditions for actions on internal events Created: 2014 Feb 02  Updated: 2017 Dec 16

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

Type: Change Request Priority: Major
Reporter: A B Assignee: Unassigned
Resolution: Unresolved Votes: 5
Labels: actions, events, internalmonitoring, maintenance, patch
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File zbxnext-2141-v34.patch     File zbxnext-2141.patch    

 Description   

Currently when creating actions for internal events, it is not possible to include the maintenance status in the conditions for that action, unlike for trigger based events. This is a problem since this means we get a bunch of high priority alerts when maintenance is performed.

To give a little background: we have a host-group representing set of servers, where the actual servers are dynamically started and stopped according to load; a separate job takes care of detecting stopped hosts an marking them as not-monitored. Now, we need an alert if the number of servers ever goes to 0. For that we have a health item on each server (1 = healthy, 0 = bad), and then an aggregate host with an item grpsum["<host-group-of-the-servers>", <health-item>, last, 0], as well as a trigger on this grpsum item. The trigger will fire if all hosts have a health of 0 and there is at least one host; but if there are no (monitored) hosts in the host-group (all machines were stopped) then the grpsum item unfortunately goes into "not supported" state. Hence a separate action has been set up for this internal event. And just like actions for trigger based events, we need to be able to suppress this action when the host-group is put into maintenance.



 Comments   
Comment by Martin Hollerweger [ 2014 Mar 13 ]

Same Problem here, i need to check if trigger goes to unknown. But if I restart Tomcat unfortunately all jmx triggers go to unknown and i get a lot of messages in my maintenance period.

Comment by Martin Hollerweger [ 2014 Mar 13 ]

Also affects Zabbix version 2.2.2 and 2.2.0

Comment by A B [ 2014 Mar 26 ]

This patch implements the requested behavior. The maintenance option shows up in the UI (and works) just like for trigger based actions. We are running this in production.

The patch is against svn r43648 on /branches/2.2 .

Comment by Michael Stockman [ 2015 Sep 08 ]

Not solved in 2.4

Comment by richlv [ 2016 Jan 20 ]

also asked in ZBXNEXT-3104

Comment by Oleksii Zagorskyi [ 2016 Feb 12 ]

There could be other, much more simple cases why I don't want to receive alerts for internal events if a host in maintenance.
One such cases mentioned in ZBXNEXT-3140

Comment by A B [ 2017 Dec 16 ]

Updated patch for zabbix 3.4.

Generated at Fri Apr 26 00:56:52 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.