Ad Widget

Collapse

Use nested group for Users

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sca_ebe
    Junior Member
    • Jul 2017
    • 15

    #1

    Use nested group for Users

    Hi everyone,

    I would like to know if there is a way to create group of user group?

    What i want to achieve is to create an action that send an email to a group of user group.

    Why? Because when i add a new user group, i only add it in the "main group" and not modify or create an action. Lets explain a bit more

    For example, my host groups :

    HG_Group
    HG_Group/France
    HG_Group/France/Paris
    -----------------------------------Host 1
    -----------------------------------Host 2
    HG_Group/France/Lyon
    -----------------------------------Host 3
    -----------------------------------Host 4
    HG_Group/Italy
    HG_Group/Italy/Rome/
    --------------------------------Host 5
    --------------------------------Host 6
    HG_Group/Germany
    HG_Group/Germany/Berlin/
    ----------------------------------------Host 7
    ----------------------------------------Host 8
    ...

    And for my users

    UG_Users
    UG_Users/France
    UG_Users/France/Paris
    ----------------------------------User 1
    ----------------------------------User 2
    UG_Users/France/Lyon
    -----------------------------------User 3
    -----------------------------------User 4
    UG_Users/Italy
    UG_Users/Italy/Rome
    --------------------------------User 5
    UG_Users/Germany
    UG_Users/Germany/Berlin
    ---------------------------------------User 6
    ---------------------------------------User 7
    ...

    The user group "UG_Users/France/Paris" has only read access to "HG_Group/France/Paris"
    The user group "UG_Users/France/Lyon" has only read access to "HG_Group/France/Lyon"
    Etc...

    In this example, a user can't be in more than one user group and a host can't be in more than one host group!

    And here is the problem, I wan't to configure an Action that send email to users according to their read permission. (Eg if a new trigger on HG_Group/France/Lyon=>Host 3 then only users in group UG_Users/France/Lyon =>User 3, User 4 are notified)

    What I did when creating the action :

    In Condition :

    Host group = HG_Group

    In operation, Operation details,

    Operation type : Send message
    Send to User groups : UG_Users

    Unfortunately, this doesn't work and no email are sent (i think because UG_Users is empty)

    Am i doing it the wrong way, or is there a little trick / workaround to achieve this?

    Thanks for helping me

    [Edit] I use Zabbix 3.2.6
    Last edited by sca_ebe; 06-07-2017, 10:51. Reason: Add Zabbix version / rewrite host and user representation
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by sca_ebe
    Hi everyone,

    I would like to know if there is a way to create group of user group?

    What i want to achieve is to create an action that send an email to a group of user group.

    Why? Because when i add a new user group, i only add it in the "main group" and not modify or create an action. Lets explain a bit more

    For example, my host groups :

    HG_Group
    HG_Group/France
    HG_Group/France/Paris
    -----------------------------------Host 1
    -----------------------------------Host 2
    HG_Group/France/Lyon
    -----------------------------------Host 3
    -----------------------------------Host 4
    HG_Group/Italy
    HG_Group/Italy/Rome/
    --------------------------------Host 5
    --------------------------------Host 6
    HG_Group/Germany
    HG_Group/Germany/Berlin/
    ----------------------------------------Host 7
    ----------------------------------------Host 8
    ...

    And for my users

    UG_Users
    UG_Users/France
    UG_Users/France/Paris
    ----------------------------------User 1
    ----------------------------------User 2
    UG_Users/France/Lyon
    -----------------------------------User 3
    -----------------------------------User 4
    UG_Users/Italy
    UG_Users/Italy/Rome
    --------------------------------User 5
    UG_Users/Germany
    UG_Users/Germany/Berlin
    ---------------------------------------User 6
    ---------------------------------------User 7
    ...

    The user group "UG_Users/France/Paris" has only read access to "HG_Group/France/Paris"
    The user group "UG_Users/France/Lyon" has only read access to "HG_Group/France/Lyon"
    Etc...

    In this example, a user can't be in more than one user group and a host can't be in more than one host group!

    And here is the problem, I wan't to configure an Action that send email to users according to their read permission. (Eg if a new trigger on HG_Group/France/Lyon=>Host 3 then only users in group UG_Users/France/Lyon =>User 3, User 4 are notified)

    What I did when creating the action :

    In Condition :

    Host group = HG_Group

    In operation, Operation details,

    Operation type : Send message
    Send to User groups : UG_Users

    Unfortunately, this doesn't work and no email are sent (i think because UG_Users is empty)

    Am i doing it the wrong way, or is there a little trick / workaround to achieve this?

    Thanks for helping me

    [Edit] I use Zabbix 3.2.6
    in the action were you choose UG_Users you can chosse all other groups ?
    how did you create sub group in a group ?

    Comment

    • sca_ebe
      Junior Member
      • Jul 2017
      • 15

      #3
      Originally posted by batchenr
      in the action were you choose UG_Users you can chosse all other groups ?
      Yes I can do that, and it works well, but the thing is, when I add a new user group, i have to edit the action and add this new user group. It's not a "big deal" but it woul be easier to just add the usergroup under the main " UG_Users"

      how did you create sub group in a group ?
      For the hosts, I first created HG_Group, then HG_Group/France, then HG_Group/France/Paris, and finally add hosts in the last one

      For the users, same way

      Comment

      • sca_ebe
        Junior Member
        • Jul 2017
        • 15

        #4
        *bump*

        Anyone else?

        Comment

        • LaurisG
          Junior Member
          • Nov 2017
          • 14

          #5
          Originally posted by sca_ebe
          *bump*

          Anyone else?
          Hi,

          Any luck with nested groups?

          Comment

          Working...