-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
6.4.2
-
None
-
Zabbix 6.4.2.
Red Hat Enterprise Linux release 8.7 (Ootpa)
TriggerActions are configured with conditions specifically for an MediaType and UserGroup which have specific "HostGroup" permission/restrictions.
Therefor TriggerActions should be limited to the HostGroups/Hosts permitted for the UserGroup, and not all UserGroups and it related HostGroups that the User belongs too.
If a User belongs to multiple Usergoups, a Trigger for that UserGroup, will send alerts related to all HostGroups(Hosts) for all the UserGroups the user belongs too.
Steps to reproduce:
- MediaType
(We did MSTeams, but pressume it will be the same issue for any media type)- Create MSTeams1 (teams_endpoint = channel 1 connector)
- Create MSTeams2 (teams_endpoint = channel 2 connector)
- HostGroups
- Create HostGroup1
- Create HostGroup2
- Hosts
- Create Host1 and add group of HostGroup1
- Create Host2 and add group of HostGroup2
- UserGroups
- Create UserGroup1 and add "Host permissions" for HostGroup1 only
- All groups:None
- HostGroup1:Read-Write
- Create UserGroup2 and add "Host permissions" for HostGroup2 only
- All groups:None
- HostGroup2:Read-Write
- Create UserGroup1 and add "Host permissions" for HostGroup1 only
- User
- Create UserAdm
- Add UserAdm to UserGroup1 and UserGroup2
- Add MediaTypes for UserAdm for both MSTeams1 and MSTeams2
- Trigger Actions
- Create a TriggerAction1 for UserGroup1
- Send message to user groups: UserGroup1 group via MSTeams1
- Create a TriggerAction2 for UserGroup2
- Send message to user groups: UserGroup2 group via MSTeams2
- Create a TriggerAction1 for UserGroup1
- Raise an alert event on both Host1 and Host2
Result:
- The alert triggered on Host1 , is received on MSTeams1 and MSTeams2
- The alert triggered on Host2 , is received on MSTeams2 and MSTeams1
Expected:
- The alert triggered on Host1 , should only be received on MSTeams1
As Host1 belongs to HostGroup1 and is permitted on UserGroup1, then the TriggerAction1 for UserGroup1 and MSTeams1 , should only send the alerts to MSTeams1. - The alert triggered on Host2 , should only be received on MSTeams2
As Host2 belongs to HostGroup3 and is permitted on UserGroup2, then the TriggerAction2 for UserGroup2 and MSTeams2 , should only send the alerts to MSTeams2.