[ZBX-15335] Tags do not work in maintenance periods Created: 2018 Dec 17 Updated: 2024 Aug 16 Resolved: 2018 Dec 21 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Documentation (D) |
Affects Version/s: | 4.0.2 |
Fix Version/s: | 4.2 (plan) |
Type: | Documentation task | Priority: | Minor |
Reporter: | Edgars Melveris | Assignee: | Martins Valkovskis |
Resolution: | Fixed | Votes: | 1 |
Labels: | maintenance | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Team: | |
Sprint: | Sprint 47, Dec 2018 |
Story Points: | 0 |
Description |
Documentation for Maintenance periods states, that: Tags If tags are specified, maintenance for the selected hosts will be limited to the problems with the corresponding tags. In case of multiple tags, they are calculated as follows: But if a maintenance period is created with Tag, that has not been applied to any problems:
All hosts and problems are still in Maintenance mode. The same thing happens, if the tag is created, but with wrong value (0) Settings for the trigger: But problems are still created in maintenance mode:
|
Comments |
Comment by richlv [ 2018 Dec 17 ] |
Isn't that intentional, same as with host group and host level maintenance? Events/problems are generated, but actions can obey the maintenance status. |
Comment by Vladislavs Sokurenko [ 2018 Dec 17 ] |
Could you please be so kind and provide steps to reproduce and expected behavior? From what I see is that problems are created because they don’t match maintenance criteria tag value 1 because 0 is received. |
Comment by Andrey Shibanov [ 2018 Dec 18 ] |
Expected behavior: all problem in groups host with tag Maintanance=1 will be supressed, all other (without tag and with value=0) not be in maintanance.
Tag in maintanace period = filter of trigers by tag? |
Comment by Andrey Shibanov [ 2018 Dec 18 ] |
Steps to reproduce:
|
Comment by Edgars Melveris [ 2018 Dec 18 ] |
Maybe I don't understand the documentation clearly? As I see it -
If tags are specified, maintenance for the selected hosts will be limited to the problems with the corresponding tags.
So, if I have specified a tag, no other problems should go into maintenance. So if tag value differs, or, does not exist, the problem should not be in maintenance, correct? |
Comment by Alexander Vladishev [ 2018 Dec 18 ] |
Seems it works as expected.
Problems with other tags will not be suppressed, but hosts in any case will be marked with a special sign Suppressed problems are marked by |
Comment by Andrey Shibanov [ 2018 Dec 18 ] |
>but hosts in any case will be marked with a special sign What for?
|
Comment by Alexander Vladishev [ 2018 Dec 18 ] |
in order to show that these hosts are under maintenance. |
Comment by Edgars Melveris [ 2018 Dec 18 ] |
Maybe the documentation could be adjusted to something like this:
sasha Thanks for your suggestion. The documentation will be updated. |
Comment by Andrey Shibanov [ 2018 Dec 18 ] |
>in order to show that these hosts are under maintenance. If problem not will be supressed, for what maintenance? May be it should not enter in maintenance? |
Comment by Edgars Melveris [ 2018 Dec 18 ] |
Yes, seems to work as expected, now that I know what to expect |
Comment by Martins Valkovskis [ 2018 Dec 18 ] |
Thanks for the discussion and suggestions. The documentation has been updated for 4.0, 4.2. |
Comment by Vladislav Bozula [ 2024 Apr 15 ] |
I would like to create a maintenance rule for a group of windows and linux hosts, which I have defined as hostgroup, but by using tags I would like to filter out only hotsts with a specific tag. A tag that is created from a template as a tag of type - host tag. Hostgroup (required): "Critical_systems" tags:
Hostgroup:"Critical_systems" + tag:"target=windows" Zabbix 6.0 LTS The documentation does not specify what kind of tags (trigger tag or host tag) can be used. |
Comment by Ilogy [ 2024 Aug 16 ] |
Zabbix version - 6.0 |