Skip to content

extra2000/zabbix-agent-box

Repository files navigation

zabbix-agent-box

License Versioning Build
License: MIT semantic-release Build status

Developer box for Zabbix agent.

Getting Started

Clone this repository and cd:

$ git clone --recursive https://github.com/extra2000/zabbix-agent-box.git
$ cd zabbix-agent-box

Creating Vagrant Box

Copy example pillar file for Zabbix agent. Optionally you may want to edit the values in the pillar file:

$ cp -v salt/roots/pillar/zabbix_agent.sls.example salt/roots/pillar/zabbix_agent.sls

Copy vagrant file from vagrant/examples/ and then create the vagrant box (you can change to --provider=libvirt if you want to use Libvirt provider):

$ cp -v vagrant/examples/Vagrantfile.zabbix-agent-box.fedora-33.x86_64.example vagrant/Vagrantfile.zabbix-agent-box
$ vagrant up --provider=virtualbox

Provision the vagrant box:

$ vagrant ssh zabbix-agent-box -- sudo salt-call state.highstate

Deploy Zabbix Server, Web, Agent, and Postgres containers:

$ vagrant ssh zabbix-agent-box -- sudo salt-call state.sls zabbix_agent