New in version 2017.7.
Management of Zabbix Action object over Zabbix API.
codeauthor: | Jakub Sliva <jakub.sliva@ultimum.io> |
---|
Makes the Zabbix Action to be absent (either does not exist or delete it).
Parameters: |
|
---|
zabbix-action-absent: zabbix_action.absent: - name: Action name
Creates Zabbix Action object or if differs update it according defined parameters
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
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.zabbix_action.html