Zabbix 5 IT Infrastructure Monitoring Cookbook
eBook - ePub

Zabbix 5 IT Infrastructure Monitoring Cookbook

  1. 428 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Zabbix 5 IT Infrastructure Monitoring Cookbook

Book details
Book preview
Table of contents
Citations

About This Book

Discover practical recipes to help you efficiently monitor enterprise IT infrastructure for Windows, Linux, and networkingKey Featuresā€¢ Find out how you can leverage some of the most exciting features of Zabbix 5ā€¢ Perform professional IT infrastructure and application monitoring on multiple platformsā€¢ Discover easy-to-follow, practical solutions to problems in network monitoring with ZabbixBook DescriptionZabbix offers useful insights into your infrastructure performance and issues and enables you to enhance your monitoring setup with its variety of powerful features. This book covers hands-on, easy-to-follow recipes for using Zabbix 5 for effectively monitoring the performance of devices and applications over networks. The book starts by guiding you through the installation of Zabbix and using the Zabbix frontend. You'll then work your way through the most prominent features of Zabbix and make the right design choices for building a scalable and easily manageable environment. The book contains recipes for building items and triggers for different types of monitoring, building templates, and using Zabbix proxies. As you advance, you'll learn how to use the Zabbix API for customization and manage your Zabbix server and database efficiently. Finally, you'll find quick solutions to the common and not-so-common problems that you may encounter in your everyday Zabbix monitoring work. By the end of this Zabbix book, you'll have learned how to use Zabbix for all your monitoring needs and be able to build a solid Zabbix setup by leveraging its key functionalities.What you will learnā€¢ Explore the different types of monitoring available in Zabbix 5ā€¢ Find out how to build your own Zabbix templatesā€¢ Use Zabbix proxies for effective load balancing/scalingā€¢ Work with custom integrations and the Zabbix APIā€¢ Set up triggers and alerting with Zabbix 5ā€¢ Maintain your Zabbix setup for scaling, backups, and upgradesā€¢ Discover how to perform advanced Zabbix database managementā€¢ Monitor cloud-based products such as Amazon Web Services (AWS), Azure, and DockerWho this book is forThis book is for IT engineers who want to get started with Zabbix and anyone with an intermediate understanding of Zabbix looking to extend their knowledge. Although not necessary, prior experience with Zabbix will help you to make the most of this book.

Frequently asked questions

Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Zabbix 5 IT Infrastructure Monitoring Cookbook by Nathan Liefting, Brian van Baekel in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Networking. We have over one million books available in our catalogue for you to explore.

Information

Year
2021
ISBN
9781800208452
Edition
1

Chapter 1: Getting Started with Zabbix and User Management

There have been quite a few changes to the Zabbix UI since 4.4 and earlier in this Zabbix 5 release. This book has been written completely with Zabbix 5, but while reading, you'll find some information detailing the differences between 4 and 5.
In this chapter, we will install the Zabbix server and explore the Zabbix UI to get you familiar with it. We will go over finding your hosts, triggers, dashboards, and more to make sure you feel confident diving into the deeper material later on in this book. The Zabbix UI has a lot of options to explore, so if you are just getting started, don't get overwhelmed. It's quite structurally built actually and once you get the hang of it, I am confident you will find your way without issues.
We will also work on creating our first user groups, users, and some advanced user authentication as a bonus. This way, we will make sure we have a structured Zabbix setup before continuing on with this book. You will learn all about these subjects in the following recipes:
  • Installing the Zabbix server
  • Setting up the Zabbix frontend
  • Using the Zabbix frontend
  • Navigating the Zabbix frontend
  • Creating user groups
  • Creating your first users
  • Advanced user authentication with SAML

Technical requirements

We'll be starting this chapter with an empty Linux (virtual) machine. Feel free to choose a RHEL or Debian based Linux distribution. We will then setup a Zabbix server from scratch on this host.
So before jumping in make sure you have your Linux host at the ready.

Installing the Zabbix server

Before doing anything within Zabbix, we need to install it and get ready to start working with it. In this recipe, we are going to discover how to install Zabbix server 5.

Getting ready

Before we actually install the Zabbix server, we are going to need to fulfill some prerequisite requirements. We will be using MariaDB mostly throughout this book. MariaDB is popular and a lot of information is available on the use of it with Zabbix.
At this point, you should have a prepared Linux server in front of you running either an RHEL- or Debian-based distribution. I'll be installing CentOS 8 and Ubuntu 20 on my server; let's call them lar-book-centos and lar-book-ubuntu.
When you have your server ready, we can start the installation process.

How to do itā€¦

  1. Let's start by adding the Zabbix 5.0 repo to our system.
    For RHEL-based systems, use the following:
    rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/zabbix-release-5.0-1.el8.noarch.rpm
    dnf clean all
    For Debian-based systems, use the following:
    wget https://repo.zabbix.com/zabbix/5.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_5.0-1+focal_all.deb
    dpkg -i zabbix-release_4.5-1+focal_all.deb
    sudo apt update
  2. Now that the repo is added, let's install MariaDB on our server.
    For RHEL-based systems, use the following:
    dnf install mariadb-server
    systemctl enable mariadb
    systemctl start mariadb
    For Debian-based systems, use the following:
    apt-get install mariadb-server
    systemctl enable mariadb
    systemctl start mariadb
  3. After installing MariaDB, make sure to secure your installation with the following command:
    sudo /usr/bin/mysql_secure_installation
  4. Run through the secure installation setup and make sure to remember your password.
  5. Now, let's install our Zabbix server with MySQL support.
    For RHEL-based systems, use the following:
    dnf install zabbix-server-mysql
    systemctl enable zabbix-server
    systemctl start zabbix-server
    For Debian-based systems, use the following:
    apt-get install zabbix-server-mysql
    systemctl enable zabbix-server
    systemctl start zabbix-server
  6. With the Zabbix server installed, we are ready to create our Zabbix database. Log in to MariaDB with the following:
    sudo mysql -u root -p
  7. Enter the password you set up during the secure installation and create the Zabbix database with the following:
    create database zabbix character set utf8 collate utf8_bin;
    create user zabbix@localhost identified by 'password';
    grant all privileges on zabbix.* to zabbix@localhost;
    flush privileges;
    quit
  8. Now we need to import our Zabbix database scheme to our newly created Zabbix database:
    zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbix -p zabbix
    Important note
    At this point, it might look like you are stuck and the system is not responding. Do not worry though as it will just take a while to import th...

Table of contents

  1. Zabbix 5 IT Infrastructure Monitoring Cookbook
  2. Why subscribe?
  3. Preface
  4. Chapter 1: Getting Started with Zabbix and User Management
  5. Chapter 2: Setting Up Zabbix Monitoring
  6. Chapter 3: Working with Triggers and Alerts
  7. Chapter 4: Building Your Own Structured Templates
  8. Chapter 5: Visualizing Data, Inventory, and Reporting
  9. Chapter 6: Using Discovery for Automatic Creation
  10. Chapter 7: Setting Up Zabbix Proxies
  11. Chapter 8: Integrating Zabbix with External Services
  12. Chapter 9: Extending Zabbix Functionality with Custom Scripts and the Zabbix API
  13. Chapter 10: Maintaining Your Zabbix Setup
  14. Chapter 11: Advanced Zabbix Database Management
  15. Chapter 12: Bringing Zabbix to the Cloud with Zabbix Cloud Integration
  16. Other Books You May Enjoy