Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22939

Incorrect Trigger Action for Users of UserGroups

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.4.2
    • Server (S)
    • 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:

      1. MediaType
        (We did MSTeams, but pressume it will be the same issue for any media type)
        1. Create MSTeams1 (teams_endpoint = channel 1 connector)
        2. Create MSTeams2 (teams_endpoint = channel 2 connector)
      2. HostGroups
        1. Create HostGroup1
        2. Create HostGroup2 
      3. Hosts
        1. Create Host1 and add group of HostGroup1
        2. Create Host2 and add group of HostGroup2
      4. UserGroups
        1. Create UserGroup1 and add "Host permissions" for HostGroup1 only
          1. All groups:None
          2. HostGroup1:Read-Write
        2. Create UserGroup2 and add "Host permissions" for HostGroup2 only
          1. All groups:None
          2. HostGroup2:Read-Write
      5. User
        1. Create UserAdm
        2. Add UserAdm to UserGroup1 and UserGroup2
        3. Add MediaTypes for UserAdm for both MSTeams1 and MSTeams2
      6. Trigger Actions
        1. Create a TriggerAction1 for UserGroup1
          1. Send message to user groups: UserGroup1 group via MSTeams1 
        2. Create a TriggerAction2 for UserGroup2
          1. Send message to user groups: UserGroup2 group via MSTeams2
      7. Raise an alert event on both Host1 and Host2

      Result:

      1. The alert triggered on Host1 , is received on MSTeams1 and MSTeams2
      2. The alert triggered on Host2 , is received on MSTeams2 and MSTeams1

      Expected:

      1. 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.
      2. 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.

            mbuz Maksym Buz
            MickeyPM Pieter Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: