[ZBX-12945] Action was performed, but the conditions (OR statement with NOT IN groups) are false Created: 2017 Oct 26  Updated: 2024 Apr 10  Resolved: 2017 Nov 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 3.2.9, 3.4.3
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Aleksejs Petrovs Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS7 + Zabbix Server with MySQL


Attachments: PNG File Selection_050.png     PNG File Selection_052.png    
Issue Links:
Sub-task
part of ZBXNEXT-97 ability to test an action in frontend Open
Team: Team B
Sprint: Sprint 19, Sprint 20, Sprint 21

 Description   

Steps to reproduce:
1. Create a Zabbix Trapper item with Trigger and three random groups. Put a host in one of the groups. Mine was {HOST.key.last()}>10 and Trigger severity Disaster.
2. Add an Action with conditions:
A and B and (C or D or E)

  • A. Not in maintenance
  • B. Trigger severity >= High
  • C. Host group <> Group1
  • D. Host group <> Group2
  • E. Host group <> Group3

And operations:

  • Send email notification.

Result:
The notification was received, however shouldn't because host is attached to the one of the listed groups.

Expected:
As per condition the Action shouldn't be performed.

Regards,
Aleksejs!



 Comments   
Comment by Vladislavs Sokurenko [ 2017 Oct 26 ]

If it's in one group and not in other then or condition will satisfy and it will be performed, please double check if correctly configured.

Not in maintenance and Trigger severity >= High and (Host group <> Group1 or Host group <> Group2 or Host group <> Group3)

You could change to:

Not in maintenance and Trigger severity >= High and Host group <> Group1 and Host group <> Group2 and Host group <> Group3

Comment by Ingus Vilnis [ 2017 Oct 26 ]

Confirming that the host is in one group only. And that it works as per your second suggestion with AND statements.

However, host can not be without a group. The proposed solution is far form straightforward and requires a C developer to think of. Neither it is documented anywhere.

User's configuration is very clear and expected.
Not in maintenance and Trigger severity >= High and Host NOT IN one of the groups!
If the host is only in one group then it is not obvious why the configuration is not working.

vso do you agree to mark it as documentation task or frontend task ?

Comment by Glebs Ivanovskis (Inactive) [ 2017 Oct 29 ]

Probably ZBXNEXT-3939 could have helped here.

Generated at Thu May 02 00:49:13 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.