{"id":10369,"date":"2024-03-15T08:00:14","date_gmt":"2024-03-15T08:00:14","guid":{"rendered":"https:\/\/hostnoc-revamp.branex.org\/blog\/?p=10369"},"modified":"2026-01-13T15:14:59","modified_gmt":"2026-01-13T15:14:59","slug":"how-to-install-zabbix-monitoring-on-ubuntu-server","status":"publish","type":"post","link":"https:\/\/hostnoc-revamp.branex.org\/blog\/how-to-install-zabbix-monitoring-on-ubuntu-server\/","title":{"rendered":"Install Zabbix Monitoring on Ubuntu Server: 9 Essential Steps"},"content":{"rendered":"<p>Zabbix is an open-source monitoring solution that provides real-time monitoring, alerting, and visualization of various aspects of your IT infrastructure. Installing Zabbix on an Ubuntu Server is a straightforward process, and in this guide, we will show you <strong data-start=\"264\" data-end=\"404\">how to install Zabbix Monitoring<\/strong> so you can keep a close eye on your network, servers, and applications.<\/p>\n<p><span style=\"font-weight: 400;\">In this comprehensive guide, we will walk you through the step-by-step process of installing Zabbix on an Ubuntu server.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Pre-requisites for Zabbix Install Ubuntu:<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Before you begin the installation process, make sure you have the following prerequisites in place:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">A fresh Ubuntu Server installation (preferably the latest long-term support version).<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Root or sudo access to the server.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">A stable internet connection to download and install packages.<\/span><\/li>\n<\/ul>\n<p><a href=\"https:\/\/hostnoc-revamp.branex.org\/blog\/book-a-call\/?utm_source=BLOGCTA&amp;utm_medium=banner&amp;utm_campaign=blog_cta_4&amp;utm_id=CTA4\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11389 size-full\" src=\"https:\/\/hostnoc-revamp.branex.org\/blog\/wp-content\/uploads\/2024\/03\/CTA-4.jpg\" alt=\"\" width=\"1920\" height=\"400\" title=\"\" srcset=\"https:\/\/hostnoc-revamp.branex.org\/blog\/wp-content\/uploads\/2024\/03\/CTA-4.jpg 1920w, https:\/\/hostnoc-revamp.branex.org\/blog\/wp-content\/uploads\/2024\/03\/CTA-4-768x160.jpg 768w, https:\/\/hostnoc-revamp.branex.org\/blog\/wp-content\/uploads\/2024\/03\/CTA-4-1536x320.jpg 1536w, https:\/\/hostnoc-revamp.branex.org\/blog\/wp-content\/uploads\/2024\/03\/CTA-4-260x54.jpg 260w, https:\/\/hostnoc-revamp.branex.org\/blog\/wp-content\/uploads\/2024\/03\/CTA-4-50x10.jpg 50w, https:\/\/hostnoc-revamp.branex.org\/blog\/wp-content\/uploads\/2024\/03\/CTA-4-150x31.jpg 150w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/a><\/p>\n<h2>Step-by-Step Guide to Install Zabbix Monitoring on Ubuntu<\/h2>\n<p><span style=\"font-weight: 400;\">Here is a step-by-step process you can use to install Zabbix monitoring on an <a href=\"https:\/\/hostnoc-revamp.branex.org\/blog\/setup-pptp-server-on-ubuntu-linux-and-centos\/\">Ubuntu server<\/a>.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 1: Update and Upgrade the System<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Start by updating the package list and upgrading the existing packages on your Ubuntu Server:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">bash<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sudo apt update<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sudo apt upgrade<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 2: Install LAMP Stack<\/span><\/h2>\n<p><span style=\"font-weight: 400;\"><a href=\"https:\/\/www.zabbix.com\/index\" target=\"_blank\" rel=\"noopener nofollow\">Zabbix<\/a> requires a web server, a database, and PHP to function. Install the LAMP stack (<\/span><b>Linux, Apache, MySQL, PHP<\/b><span style=\"font-weight: 400;\">) using the following commands:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">bash<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql<\/span><\/p>\n<p><span style=\"font-weight: 400;\">During the MySQL installation, you will be prompted to set a password for the root user. Make sure to choose a strong password and remember it.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 3: Create Zabbix Database and User<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Next, create a MySQL database and user for Zabbix:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">bash<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sudo mysql -u root -p<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Enter the MySQL root password when prompted, and then execute the following SQL commands to create the database and user:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sql<\/span><\/p>\n<p><span style=\"font-weight: 400;\">CREATE DATABASE zabbix character set utf8 collate utf8_bin;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">CREATE USER &#8216;zabbix&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;your_password&#8217;;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">GRANT ALL PRIVILEGES ON zabbix.* TO &#8216;zabbix&#8217;@&#8217;localhost&#8217; WITH GRANT OPTION;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">FLUSH PRIVILEGES;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">EXIT;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Replace <\/span><b>&#8216;your_password&#8217; <\/b><span style=\"font-weight: 400;\">with a strong password for the Zabbix database user.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 4: Install Zabbix Server and Frontend<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Now, you can install the Zabbix server and frontend packages using the following commands:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">bash<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sudo wget https:\/\/repo.zabbix.com\/zabbix\/5.4\/ubuntu\/pool\/main\/z\/zabbix-release\/zabbix-release_5.4-1+ubuntu$(lsb_release -rs)_all.deb<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sudo dpkg -i zabbix-release_5.4-1+ubuntu$(lsb_release -rs)_all.deb<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sudo apt update<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent<\/span><\/p>\n<p><span style=\"font-weight: 400;\">During the installation, you will be prompted to configure the Zabbix server database connection. Enter the database details you created in Step 3.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 5: Configure Zabbix Server and Agent<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Edit the Zabbix server configuration file to specify the database details:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">bash<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sudo nano \/etc\/zabbix\/zabbix_server.conf<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Find the following lines and update them with your database information:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">ini<\/span><\/p>\n<p><span style=\"font-weight: 400;\">DBHost=localhost<\/span><\/p>\n<p><span style=\"font-weight: 400;\">DBName=zabbix<\/span><\/p>\n<p><span style=\"font-weight: 400;\">DBUser=zabbix<\/span><\/p>\n<p><span style=\"font-weight: 400;\">DBPassword=your_password<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Save and close the file.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 6: Initialize Zabbix Database<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Now, initialize the Zabbix database schema and insert initial data:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">bash<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sudo zcat \/usr\/share\/doc\/zabbix-server-mysql\/create.sql.gz | sudo mysql -u zabbix -p zabbix<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You will be prompted to enter the password for the Zabbix database user.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 7: Configure Zabbix Frontend<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Edit the Zabbix frontend configuration file:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">bash<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sudo nano \/etc\/zabbix\/apache.conf<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Find the following lines and update them:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">apache<\/span><\/p>\n<p><span style=\"font-weight: 400;\">php_value date.timezone Europe\/Riga<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Replace <\/span><b>&#8216;Europe\/Riga&#8217; <\/b><span style=\"font-weight: 400;\">with your timezone. Save and close the file.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 8: Start Zabbix Services<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Start the Zabbix server and agent services:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">bash<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sudo systemctl start zabbix-server zabbix-agent apache2<\/span><\/p>\n<p><span style=\"font-weight: 400;\">sudo systemctl enable zabbix-server zabbix-agent apache2<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Step 9: Accessing the Zabbix Web Interface on Ubuntu<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Open your web browser and navigate to your server&#8217;s IP address or domain, followed by &#8220;\/<\/span><b>Zabbix<\/b><span style=\"font-weight: 400;\">.&#8221;\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">For example:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">arduino<\/span><\/p>\n<p><span style=\"font-weight: 400;\">http:\/\/your_server_ip\/zabbix<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Log in with the default credentials:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Username: Admin<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Password: zabbix<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">You will be prompted to change the password.<\/span><\/p>\n<p><strong>Read more: <a href=\"https:\/\/hostnoc-revamp.branex.org\/blog\/ark-dedicated-server\/\">How To Host a Dedicated ARK Server? | ARK Server Hosting<\/a><\/strong><\/p>\n<h2><span style=\"font-weight: 400;\">Conclusion:<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Congratulations! You have successfully installed Zabbix on your Ubuntu Server. You can now configure monitoring for your IT infrastructure, add hosts, and customize alerting to ensure the optimal performance and health of your systems. Zabbix&#8217;s user-friendly interface and powerful features make it an excellent choice for comprehensive monitoring and management.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Did this article help you in installing Zabbix monitoring on Ubuntu? Share your feedback with us in the comments section below.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zabbix is an open-source monitoring solution that provides real-time monitoring, alerting, and visualization of various aspects of your IT infrastructure. Installing Zabbix on an Ubuntu Server<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/p>\n","protected":false},"author":13,"featured_media":10370,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[203],"tags":[254,255],"class_list":["post-10369","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guide","tag-install-zabbix","tag-zabbix-network-monitoring"],"acf":[],"_links":{"self":[{"href":"https:\/\/hostnoc-revamp.branex.org\/blog\/wp-json\/wp\/v2\/posts\/10369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostnoc-revamp.branex.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostnoc-revamp.branex.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostnoc-revamp.branex.org\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/hostnoc-revamp.branex.org\/blog\/wp-json\/wp\/v2\/comments?post=10369"}],"version-history":[{"count":4,"href":"https:\/\/hostnoc-revamp.branex.org\/blog\/wp-json\/wp\/v2\/posts\/10369\/revisions"}],"predecessor-version":[{"id":14638,"href":"https:\/\/hostnoc-revamp.branex.org\/blog\/wp-json\/wp\/v2\/posts\/10369\/revisions\/14638"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostnoc-revamp.branex.org\/blog\/wp-json\/wp\/v2\/media\/10370"}],"wp:attachment":[{"href":"https:\/\/hostnoc-revamp.branex.org\/blog\/wp-json\/wp\/v2\/media?parent=10369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostnoc-revamp.branex.org\/blog\/wp-json\/wp\/v2\/categories?post=10369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostnoc-revamp.branex.org\/blog\/wp-json\/wp\/v2\/tags?post=10369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}