Book Image

Zabbix Performance Tuning

By : Luciano Alves, Luciano de C Alves
Book Image

Zabbix Performance Tuning

By: Luciano Alves, Luciano de C Alves

Overview of this book

Table of Contents (20 chapters)
Zabbix Performance Tuning
Credits
Foreword
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

Once, I read a book called The Outliers by Malcolm Gladwell. In this book, the author talks about the circumstances that lead people to get certain results in their areas of expertise, whatever they may be—music, sports, math, physics, and so on. The key aim of the author is to assert, based on facts and data, that there aren't people with extraordinary qualities, but the result depends on the effort, time, and energy devoted to that activity. The opportunity to stand out comes when we are in the right place at the right time. There is a popular saying, "Luck is what happens when capacity/competency and opportunity meet." I think Alexei Vladishev was lucky.

When I met Alexei in 2008, I was surprised by his simplicity and mild nature at the places where he worked, whether it was a training session, a lecture in an auditorium, a meeting with the client, or anything else. He's one of those guys who have in themselves a great guiding force for their actions and decisions, and who don't accept the label of a "pop star" in the open source world. In one of our conversations, he told me about one of the reasons for devoting his professional life to Zabbix SIA and his time to the development of Zabbix—improving people's lives. Simple, and without any "mega" aspiration! He only wanted to help people get their work done better. From this originate his other decisions regarding Zabbix; for example, there is no paid professional or enterprise version.

When I was invited to write this book, I thought about the points I have just described. I thought that it would be a great opportunity to bring to a greater number of people the knowledge that I had gained over the years working with Zabbix in large companies. It would also be a way to give to this field something in return for what I had obtained from it over the years. I hope this book will help you take full advantage of Zabbix, and may it contribute to the goal Alexei had—that of Zabbix being a tool for improving people's lives.

What this book covers

Chapter 1, Evolution of Zabbix, explains that the start with Zabbix is not always glamorous as it does not always have the most advanced features. If you're experiencing performance issues with Zabbix, it is likely that you can solve them without new hardware or software.

Chapter 2, Zabbix and I – Almost Heroes, talks about how Zabbix has evolved due to performance issues in each version. We need to look out for the new features. In this chapter, we also talk about the importance of Zabbix, which grows as the other teams and areas of companies become aware of the potential of this tool.

Chapter 3, Tuning the Zabbix Server, tells you a little more about the possibilities and needs for adjustments to the Zabbix server. It is important to realize that many performance problems can be solved by adjusting the Zabbix server's settings.

Chapter 4, Tuning the MySQL Database, talks about the motivations behind choosing MySQL as the database for Zabbix, and the main MySQL settings related to the performance of Zabbix. In this chapter, you understand a few things about MySQL's behavior with Zabbix.

Chapter 5, Tuning the Frontend, teaches you how to speed up the delivery of Zabbix data to users and improve their experience with the frontend. Nowadays, we can choose from new web servers. Apache is not the sole alternative, nor is it the "killer one."

Chapter 6, Adjusting the Storage, mentions what we must take into account when we think of the hardware, especially the storage to use with Zabbix. To get the best performance from Zabbix, we need to understand how information flows into it and adjust the settings to control the flow of data (reading and writing).

Chapter 7, Tuning the Operating System, considers the fact that the operating system is an important part in this control flow process. We should make sure that we search in our Linux distribution to find the best practices for performance, always taking into account the component that the operating system is involved with (the Zabbix proxy, Zabbix GUI, Zabbix server, or Zabbix database).

Chapter 8, Doing the Extra Work, informs you that it is possible to target the components of Zabbix (the Zabbix server, GUI, and database) on different pieces of hardware. It will also become clear to you that the great hardware consumer is the Zabbix database, and it is this component that must be given the best hardware.

Chapter 9, Using the Zabbix Proxy, proves that the Zabbix proxy can be a powerful ally of the Zabbix server for improving environmental performance. It is good practice to start the environment by already considering a Zabbix proxy, even if it is on the same network in which we have the Zabbix server.

Chapter 10, Monitoring the Health of Zabbix, asserts that Zabbix's internal metrics are an important part of performance tuning. These metrics can't be evaluated alone. We need to understand that they could be affected by other factors, such as the Zabbix database settings.

Chapter 11, The Next Challenge, puts forward a challenge: understanding where and how Zabbix can support the company's business. We should not think of this powerful tool as only something to be used to monitor the IT infrastructure.

The online chapter, Performance Features and Improvements since Zabbix 1.8, provides some information about the new features and improvements related to performance since Zabbix 1.8. The chapter is only available online at https://www.packtpub.com/sites/default/files/downloads/B03410_Appendix.pdf.

What you need for this book

For this book, you will need good knowledge about Zabbix concepts and administration tasks. We wrote this book to help Zabbix administrators reach new challenges with Zabbix. This book isn't aimed at teaching you how to start a Zabbix deployment; you will need a Zabbix deployment already up and running.

Who this book is for

This book is intended for all Zabbix administrators who, one day, took up the challenge to opt for an open source monitoring tool. This is independent of whether or not you are experiencing performance issues. This book also caters to those who do not want performance problems in the future.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The innodb_buffer_pool_size parameter is one of the most important parameters in MySQL."

A block of code is set as follows:

...
vm.swappiness = 5
...

Any command-line input or output is written as follows:

[root]# zabbix_get -s localhost -k kernel.maxfiles
1512039

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Choose the group that the hosts belong to, search for your host, and click on the Graphs link."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.