zabbix_usergroup

Management of Zabbix user groups.

codeauthor:

Jiri Kotlin <jiri.kotlin@ultimum.io>

saltext.zabbix.states.zabbix_usergroup.__virtual__()[source]

Only make these states available if Zabbix module is available.

saltext.zabbix.states.zabbix_usergroup.present(name, **kwargs)[source]

Creates new user group. NOTE: This function accepts all standard user group properties: keyword argument names differ depending on your zabbix version, see: https://www.zabbix.com/documentation/2.0/manual/appendix/api/usergroup/definitions#user-group

Added in version 2016.3.0.

Parameters:
  • name – name of the user group

  • _connection_user – Optional - zabbix user (can also be set in opts or pillar, see module’s docstring)

  • _connection_password – Optional - zabbix password (can also be set in opts or pillar, see module’s docstring)

  • _connection_url – Optional - url of zabbix frontend (can also be set in opts, pillar, see module’s docstring)

make_new_thai_monks_usergroup:
    zabbix_usergroup.present:
        - name: 'Thai monks'
        - gui_access: 1
        - debug_mode: 0
        - users_status: 0
saltext.zabbix.states.zabbix_usergroup.absent(name, **kwargs)[source]

Ensures that the user group does not exist, eventually delete user group.

Added in version 2016.3.0.

Parameters:
  • name – name of the user group

  • _connection_user – Optional - zabbix user (can also be set in opts or pillar, see module’s docstring)

  • _connection_password – Optional - zabbix password (can also be set in opts or pillar, see module’s docstring)

  • _connection_url – Optional - url of zabbix frontend (can also be set in opts, pillar, see module’s docstring)

delete_thai_monks_usrgrp:
    zabbix_usergroup.absent:
        - name: 'Thai monks'