apt install zabbix-server-mysql mysql-server zabbix-frontend-php

Follow README.Debian files

http://192.168.x.x/zabbix/ # Admin : zabbix

Check "Screens" / Zabbix server

apt install zabbix-agent

Edit /etc/zabbix/zabbix-agentd.conf, edit:


Check /var/log/zabbix-agent/zabbix_agentd.log

In the web interface, Configuration > Host > Create Host, add a new host, give it a Template Linux OS.

In Monitoring > Screens, create a new screen and add a few graphs to check if the communication with the agent is OK.

Test suite

apt install phpunit

# Tests removed from source archive (in 'make dist'), add them back:
git clone zabbix-git
cd zabbix-3.0.31+dfsg.../
cp -a ../zabbix-git/frontends/php/tests frontends/php/
cp -a ../zabbix-git/build.xml .

ant test-phpunit

3 errors with 3.0.31 (apparently spurious).

The front-end testsuite is more complex to setup.

TODO: incomplete

apt install composer php-curl
composer require phpunit/phpunit-selenium=3.0.3

WORKSPACE_URL=http://192.168.x.x/zabbix/ ant -DDBTYPE=mysql -DDBHOST=localhost -DDBNAME=zabbix -DDBUSER=zabbix -DDBPASSWORD=SECRETPASSWORD create-configs

ant test-frontend

Not registered in ant?

phpunit --bootstrap bootstrap.php agent.php