linux,  WMVARE,  Zabbix

Testing Zabbix VirtualBox 6.0

https://www.virtualbox.org/wiki/Downloads

If you’re looking for the latest VirtualBox 5.2 packages, see VirtualBox 5.2 builds. Please also use version 5.2 if you still need support for 32-bit hosts, as this has been discontinued in 6.0. Version 5.2 will remain supported until July 2020.

Note: After upgrading VirtualBox it is recommended to upgrade the guest additions as well.

VirtualBox 6.0.14 Oracle VM VirtualBox Extension Pack

So go ahead and enable virtualization for 64 iso (OS support), it is just 1 step in the BIOS, from disable to enable…..

So we downloaded some ios’s and we will use ubuntu-18.04.2-desktop-amd64

Now we are installing OS, it is quick, just next, next, use the recommended settings and point to iso.

After that set up Ubuntu.

No keyboard……?(“Power Off the VM and change the “Video Memory” under the Display module to 128 MB. In mine, I forgot to increase it and it was just 12 MB but after increasing it to 128 MB.”)

https://stackoverflow.com/questions/11039177/keyboard-not-working-in-oracle-vm-virtual-box

And we are ready….

sudo apt-get update

https://www.zabbix.com/download?zabbix=4.4&os_distribution=ubuntu&os_version=18.04_bionic&db=mysql

wget https://repo.zabbix.com/zabbix/4.4/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.4-1+bionic_all.deb
dpkg -i zabbix-release_4.4-1+bionic_all.deb
apt update

Follow the rest of the guide, when your ar at Mysql enter

sudo mysql -uroot -p

Here we grant rights and use a bad password for the test.

zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

Great, it is already there.

Next up config changes, but first what do we have now?

We got apache, zabbix agent, and zabbix server.

We edit zabbix_server.conf with:DBPassword, check also DBUser and DBName

Then we uncomment and edit the timezone in apache.conf

The reload settings, could also enable to run at boot! Second line in install link, use sudo for systemctl restart and enable

Next up, navigate to localhost/zabbix

Check php, all ok, Oslo is our timezone as we edited:

DB settings, add password:

Enter install properties:

Check params:

And we are done:

https://www.zabbix.com/documentation/4.4/manual/installation/install#installing_frontend

Next and login with default Admin and zabbix, and we are in:

Switch mode in virtualbox, right ctlr + c:

Ok, lets make an HTTP agent:

https://www.zabbix.com/documentation/4.4/manual/config/items/itemtypes/http

We will use this API:

https://breakingbadapi.com/documentation

Agent:

Set value type

Preprocessing is none now.

Query:

  • https://breakingbadapi.com/api/characters/1

Result:

Comments Off on Testing Zabbix VirtualBox 6.0