[ZBXNEXT-1848] Add a Zabbix Internal item to get Host Maintenance Status Created: 2013 Aug 01  Updated: 2014 Nov 11  Resolved: 2014 Jul 16

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Server (S)
Affects Version/s: 2.0.7
Fix Version/s: 2.3.3

Type: New Feature Request Priority: Minor
Reporter: Jean-Francois Levesque Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: items, maintenance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

I think it would be good to add a Zabbix Internal item to get the Host Maintenance Status. Something very similar to the property maintenance_status of the Host Object in the API.

For example:

zabbix[host,maintenance] - Effective maintenance status.

Possible values are:
0 - (default) no maintenance;
1 - maintenance in effect.

I use a lot of Aggregate Checks and I need this item to change my thresholds based on the number of hosts in the group that are in maintenance.

Thank you.



 Comments   
Comment by Alexander Vladishev [ 2014 Jun 20 ]

Added specification: https://www.zabbix.org/wiki/Docs/specs/ZBXNEXT-1848

Comment by richlv [ 2014 Jul 16 ]

(1) this should fix ZBXNEXT-2279 as well - that should be explicitly tested

<richlv> was implemented there, CLOSED

Comment by Alexander Vladishev [ 2014 Jul 16 ]

(2) Translation string changes:

  • Added new string:
    • Returns current maintenance status of the host.

asaveljevs CLOSED

Comment by Alexander Vladishev [ 2014 Jul 16 ]

Available in the development branch svn://svn.zabbix.com/branches/dev/ZBXNEXT-1848

Comment by Andris Zeila [ 2014 Jul 17 ]

Successfully tested

Comment by Alexander Vladishev [ 2014 Jul 17 ]

Available in pre-2.3.3 (trunk) r47422.

Comment by Martins Valkovskis [ 2014 Jul 18 ]

(3) Documented:

<richlv>

  • i'd also suggest to add in https://www.zabbix.com/documentation/2.2/manual/maintenance something like :
    "it is possible to have individual triggers obey maintenance period by adding [[internal item]] <key> and including it in trigger expressions like this :
    <example>"
    note that the interval of this internal item should be less than the time it would take the trigger to fire - for example, if a trigger would check for data missing for 10 minutes using nodata(10m), maintenance item interval should be 10 minutes or less"
  • in whatsnew, it's not worth referencing : "like zabbix[host,,maintenance]."
    instead, we should explain the benefit of this change ("this item will now work correctly in cases when a host is monitored by a proxy" or similar)

sasha "internal items is now always processed by server or proxy regardless of maintenance status". It should be added into:

martins-v Added to:

asaveljevs CLOSED

Comment by richlv [ 2014 Aug 22 ]

subissues still open: 2, 3

Generated at Wed Apr 24 11:17:27 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.