zabbix.zabbix.zabbix_event (1.3.6) — module

Module for event actions

Authors: Zabbix Ltd (@zabbix)

Install collection

Install with ansible-galaxy collection install zabbix.zabbix:==1.3.6


Add to requirements.yml

  collections:
    - name: zabbix.zabbix
      version: 1.3.6

Description

Update/Get existing events in Zabbix. Currently implemented only message action.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# To create host groups, you can use:
- name: Update event with message
  zabbix.zabbix.zabbix_event:
    action: message
    ids: ["2222"]
    msg: "Hello world"
  vars:
    ansible_network_os: zabbix.zabbix.zabbix
    ansible_connection: httpapi
    ansible_user: Admin
    ansible_httpapi_pass: zabbix

Inputs

    
ids:
    aliases:
    - eventids
    - event_ids
    description: List of host groups to create/remove.
    elements: str
    required: true
    type: list

msg:
    description: Update event with message
    required: true
    type: str

action:
    choices:
    - message
    default: message
    description: Event module actions
    required: false
    type: str