New in version 2017.7.
Management of Zabbix Action object over Zabbix API.
|codeauthor:||Jakub Sliva <email@example.com>|
Makes the Zabbix Action to be absent (either does not exist or delete it).
zabbix-action-absent: zabbix_action.absent: - name: Action name
present(name, params, **kwargs)¶
Creates Zabbix Action object or if differs update it according defined parameters
If there is a need to get a value from current zabbix online (e.g. id of a hostgroup you want to put a discovered system into), put a dictionary with two keys "query_object" and "query_name" instead of the value. In this example we want to get object id of hostgroup named "Virtual machines" and "Databases".
zabbix-action-present: zabbix_action.present: - name: VMs - params: eventsource: 2 status: 0 filter: evaltype: 2 conditions: - conditiontype: 24 operator: 2 value: 'virtual' - conditiontype: 24 operator: 2 value: 'kvm' operations: - operationtype: 2 - operationtype: 4 opgroup: - groupid: query_object: hostgroup query_name: Virtual machines - groupid: query_object: hostgroup query_name: Databases