community.general.zabbix_user_info (0.1.1) — module

Gather information about Zabbix user

Authors: sky-joker (@sky-joker)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

This module allows you to search for Zabbix user entries.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get zabbix user info
  zabbix_user_info:
    server_url: "http://zabbix.example.com/zabbix/"
    login_user: admin
    login_password: secret
    alias: example

Inputs

    
alias:
    description:
    - Name of the user alias in Zabbix.
    required: true
    type: str

timeout:
    default: 10
    description:
    - The timeout of API request (seconds).
    type: int

login_user:
    description:
    - Zabbix user name.
    required: true
    type: str

server_url:
    aliases:
    - url
    description:
    - URL of Zabbix server, with protocol (http or https). C(url) is an alias for C(server_url).
    required: true
    type: str

login_password:
    description:
    - Zabbix user password.
    required: true
    type: str

validate_certs:
    default: true
    description:
    - If set to False, SSL certificates will not be validated. This should only be used
      on personally controlled sites using self-signed certificates.
    type: bool

http_login_user:
    description:
    - Basic Auth login
    type: str

http_login_password:
    description:
    - Basic Auth password
    type: str

Outputs

zabbix_user:
  description: example
  returned: always
  sample:
    alias: example
    attempt_clock: '0'
    attempt_failed: '0'
    attempt_ip: ''
    autologin: '0'
    autologout: '0'
    debug_mode: '0'
    gui_access: '0'
    lang: en_GB
    medias:
    - active: '0'
      mediaid: '668'
      mediatypeid: '1'
      period: 1-7,00:00-24:00
      sendto: example@example.com
      severity: '63'
      userid: '660'
    name: user
    refresh: 30s
    rows_per_page: '50'
    surname: example
    theme: default
    type: '1'
    url: ''
    userid: '660'
    users_status: '0'
    usrgrps:
    - debug_mode: '0'
      gui_access: '0'
      name: Guests
      users_status: '0'
      usrgrpid: '8'
  type: dict