Comments on How to Install Zabbix Monitoring Tool on Ubuntu 18.04 LTS
Zabbix is an open-source monitoring tool for network services, network hardware, servers and applications. In this tutorial, we show you how to install Zabbix 4.4 on the Ubuntu 18.04 server. We will install Zabbix with Apache web server, PHP and MariaDB server on the current Ubuntu 18.04 server.
8 Comment(s)
Comments
already 20.04
That new operating system versions get published after a tutorial has been written is quite common I guess ;)
It seems this tutorial installs Zabbix on a server to monitor services running on that same server. I was expecting Zabbix is used to monitor a bunch of servers and services running on those other servers. I can not see anything about that kind of setup on this tutorial. Quick browsing of Zabbix manual table of contents, and I did not see how this is set up.
Hey bro I can help you here.
Each machine you want to monitor is a Host. Each host will need the Zabbix Agent installed.Once the Agent is installed, you can either add it as a Host manually in the Zabbix front-endOr you can use the Zabbix auto-discover function to scan an IP range for machines with the agent installed
Once the Host is recognised, you need to configure the items you are monitoring
https://www.zabbix.com/documentation/4.0/manual/quickstart
This guide is really good.
-------------------------------------------------
Installing the agent will vary depending on the OS of your target host. I tested it with CentOS 8 so these were my steps:
1. install https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm -y2. install zabbix zabbix-agent3. systemctl start zabbix-agent4. systemctl enable zabbix-agent5. nano /etc/zabbix/zabbix_agentd.conf (yeah I use nano lol)6. In the zabbix_agentd.conf file I changed the server and hostname fields Server=192.168.0.whatever Hostname=Server1 7. firewall-cmd --permanent --add-port=10050/tcp8. firewall-cmd --permanent --add-port=10051/tcp9. firewall-cmd --reload10. systemctl restart zabbix-agentThe agent is now set up. I gave both machines a reboot for good measure (although this is not necessary)Then I followed the Zabbix Documentation link I posted above.ALl monitoring working fine! I am getting CPU load graphs.
Excellent guide. Set up was easy and (unlike other Zabbix instructions) there are no latin1/utf8 charset conflicts. 18.04 LTS is a perfect OS for this, no need for 20.04 yet :)
Just one question...
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
Is this meant to be -uzabbix or -u zabbix, or doesn't it matter?
This should not matter, but you can add a white space for clarity.
Thank you! The server installed with no errors, so I guessed it wasn't vital, but I wanted to double check. I am learning this all as I go :) Thank you again bro
sudo apt install maraidb-server mariadb-client ERROR WORD maraidb-server - mariadb-server