35f786b757
Change-Id: I0e7befd33c582a82bfeedc721da216a550241867 Closes-Bug: #1497294 |
||
---|---|---|
.. | ||
README.rst | ||
zabbix_machine_registration.yaml |
README.rst
Zabbix registration example (based on v2 API/DSL)
The example is created to demonstrate how Mistral can be used to interact with third party service's API through HTTP requests. This specific example works with Zabbix monitoring service. Mistral uses auth information provided by the user to retrieve Zabbix auth token. Then it creates host group (in terms of Zabbix), host with given machine IP and sets simple check item - ping machine every 5 seconds.
How to run
Load workbook from
zabbix_machine_registration.yaml
:mistral workbook-create zabbix_machine_registration.yaml
Create
input.json
file containing workflow input:{ "machine_ip": [your machine IP], "machine_port": [your machine port], "zabbix_host": [Zabbix host], "zabbix_username": [Zabbix username], "zabbix_password": [Zabbix password], }
Run the execution:
mistral execution-create zabbix.register_in_zabbix input.json
Using execution id from the previous step wait for completion (workflow
SUCCESS
state):mistral execution-get <execution_id>
Check your Zabbix host group. You will see new host group, one host in it and one simple check item.