Skip to content

Latest commit

 

History

History
32 lines (28 loc) · 859 Bytes

README.md

File metadata and controls

32 lines (28 loc) · 859 Bytes

This is an example to show how to use Zabbicook with Ansible.

You can easily run a Zabbix server with the Docker image.

docker run \
    -d \
    --name zabbix-test-db \
    --env="MARIADB_USER=zabbix" \
    --env="MARIADB_PASS=my_password" \
    monitoringartist/zabbix-db-mariadb

docker run \
    -d \
    --name zabbix-test \
    -p 8080:80 \
    -p 10051:10051 \
    -v /etc/localtime:/etc/localtime:ro \
    --link zabbix-test-db:zabbix.db \
    --env="ZS_DBHost=zabbix.db" \
    --env="ZS_DBUser=zabbix" \
    --env="ZS_DBPassword=my_password" \
    --env="XXL_zapix=true" \
    --env="XXL_grapher=true" \
    monitoringartist/zabbix-xxl:3.2.1

Run the playbook with the Zabbix server running.

pip install ansible
ansible-playbook playbook.yml