Zabbix 4 Network Monitoring
eBook - ePub

Zabbix 4 Network Monitoring

Monitor the performance of your network devices and applications using the all-new Zabbix 4.0, 3rd Edition

Patrik Uytterhoeven, Rihards Olups

  1. 798 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Zabbix 4 Network Monitoring

Monitor the performance of your network devices and applications using the all-new Zabbix 4.0, 3rd Edition

Patrik Uytterhoeven, Rihards Olups

Detalles del libro
Vista previa del libro

Información del libro

Gather detailed statistics and deploy impressive business solutions with Zabbix 4.0

Key Features

  • Experience the full impact of Zabbix 4.0, a useful and increasingly popular tool
  • Enhance your network's performance and manage hosts and systems
  • A step-by-step guide to smarter network monitoring

Book Description

Zabbix 4 Network Monitoring is the perfect starting point for monitoring the performance of your network devices and applications with Zabbix. Even if you've never used a monitoring solution before, this book will get you up and running quickly. You'll learn to monitor more sophisticated operations with ease and soon feel in complete control of your network, ready to meet any challenges you might face.

Starting with the installation, you will discover the new features in Zabbix 4.0. You will then get to grips with native Zabbix agents and Simple Network Management Protocol (SNMP) devices. You will also explore Zabbix's integrated functionality for monitoring Java application servers and VMware. This book also covers notifications, permission management, system maintenance, and troubleshooting, so you can be confident that every potential challenge and task is under your control. If you're working with larger environments, you'll also be able to find out more about distributed data collection using Zabbix proxies. Once you're confident and ready to put these concepts into practice, you will understand how to optimize and improve performance. Troubleshooting network issues is vital for anyone working with Zabbix, so the book also helps you work through any technical snags and glitches you might face.

By the end of this book, you will have learned more advanced techniques to fine-tune your system and make sure it is in a healthy state.

What you will learn

  • Install Zabbix server and an agent from source
  • Manage hosts, users, and permissions while acting upon monitored conditions
  • Visualize data with the help of ad hoc graphs, custom graphs, and maps
  • Simplify complex configurations and learn to automate them
  • Monitor everything from web pages to IPMI devices and Java applications to VMware stats
  • Configure Zabbix to send alerts including problem severity and time periods
  • Troubleshoot any network issue

Who this book is for

If you're new to Zabbix look no further than this book. Zabbix 4 Network Monitoring is for system and network administrators who are looking to put their knowledge to work with Zabbix 4.0.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Zabbix 4 Network Monitoring un PDF/ePUB en línea?
Sí, puedes acceder a Zabbix 4 Network Monitoring de Patrik Uytterhoeven, Rihards Olups en formato PDF o ePUB, así como a otros libros populares de Ciencia de la computación y Redes de computadoras. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.



Advanced Item Monitoring

Having set up passive and active Zabbix agent items, simple checks such as ICMP ping or TCP service checks, or SNMP and IPMI checks, can we go further? Of course we can. Zabbix provides several more item types that are useful in different situations—let's try them out.
In this chapter, we'll explore log file monitoring; computing values on the server from the already collected data; running custom scripts on the Zabbix server or agents; sending in complete custom data using a wonderful utility, zabbix_sender; and running commands over SSH and Telnet. Among these methods, we should be able to implement the monitoring of any custom data source that isn't supported by Zabbix out of the box.
Let's have a short overview of the topics that we'll touch on:
  • Log file monitoring
  • Event tags
  • Reusing data on the server
  • External checks
  • User parameters
  • SSH and Telnet items
  • Dependent items and value preprocessing

Log file monitoring

Log files can be a valuable source of information. Zabbix provides a way to monitor log files using the Zabbix agent. For that, two special keys are provided:
  • log: Allows us to monitor a single file
  • logrt: Allows us to monitor multiple rotated files
Both of the log monitoring item keys only work as active items. To see how this functions, let's try out the Zabbix log file monitoring by actually monitoring some files.

Monitoring a single file

Let's start with the simpler case, monitoring a single file. To do so, we could create a couple of test files. To keep things a bit organized, let's create a directory, /tmp/zabbix_logmon/, on A test host and create two files in there, logfile1 and logfile2. For both files, use the same content as this:
2018-08-13 13:01:03 a log entry
2018-08-13 13:02:04 second log entry
2018-08-13 13:03:05 third log entry
Active items must be properly configured for log monitoring to work; we did that in Chapter 3, Monitoring with Zabbix Agents and Basic Protocols.
With the files in place, let's proceed to creating items:
  1. Navigate to Configuration | Hosts, click on Items next to A test host, then click on Create item. Fill in the following:
    • Name: First logfile
    • Type: Zabbix agent (active)
    • Key: log[/tmp/zabbix_logmon/logfile1]
    • Type of information: Log
    • Update interval: 1s
  1. When done, click on the Add button at the bottom.
As mentioned earlier, log monitoring only works as an active item, so we used that item type. For the key, the first parameter is required; it's the full path to the file we want to monitor. We also used a special type of information here, log. But what about the update interval, why did we use such a small interval of one second? For log items, this interval isn't about making an actual connection between the agent and the server; it's only about the agent checking whether the file has changed: it does a stat() call, similar to what tail -f does on some platforms/filesystems. A connection to the server is only made when the agent has anything to send in.
With active items, log monitoring is both quick to react, as it's checking the file locally, and avoids excessive connections. It could be implemented as a somewhat less efficient passive item, but that's not supported.
With the item in place, it shouldn't take longer than three minutes for the data to arrive—if everything works as expected, of course. Up to one minute could be required for the server to update the configuration cache, and up to two minutes could be required for the active agent to update its list of items. Let's verify this: navigate to Monitoring | Latest data and filter by host, A test host. Our First logfile item should be there, and it should have some value as well:
Even short values are excessively trimmed here. It's hoped that this will be improved in further releases. If the item is unsupported and the configuration section complains about permissions, make sure permissions actually allow the Zabbix user to access that file. If the permissions on the file itself look correct, check the execute permission on all the upstream directories too. Here and later, keep in mind that unsupported items will take up to 10 minutes to update after the issue has been resolved.
As with other non-numeric items, Zabbix knows that it can't graph logs, hence there's a History link on the right-hand side; let's click on it:
All of the lines from our log file are here. By default, Zabbix log monitoring parses whole files from the very beginning. That's good in this case, but what if we wanted to start monitoring some huge existing log file? Not only would that parsing be wasteful, we would also likely send lots of useless old information to the Zabbix server. Luckily, there's a way to tell Zabbix to only parse new data since the monitoring of that log file started. We could try that out with our second file and, to keep things simple, we could also clone our first item. Let's proceed with the following steps:
  1. Navigate to Configuration | Hosts, click on Items next to A test host, then click on First logfile in the Name column. At the bottom of the item configuration form, click on Clone and make the following changes:
    • Name: Second logfile
    • Key: log[/tmp/zabbix_logmon/logfile2,,,,skip]
There are four commas in the item key; this way, we're skipping some parameters and only specifying the first and fifth parameters.
  1. When done, click on the Add button at the bottom.
The same as before, it might take up to three minutes for this item to start working. Even when it starts working, there will be nothing to see in the latest data page; we specified the skip parameter and hence only new lines would be considered.
Allow at least three minutes to pass after adding the item before executing the following command. Otherwise, the agent won't have the new item definition yet.
To test this, we could add some lines to Second logfile. On A test host, execute the following:
 $ echo "2018-12-1 10:34:05 fourth log entry" >> /tmp/zabbix_logmon/logfile2
This and further fake log entries increase the timestamp in the line itself; this isn't required, but looks a bit better. For now, Zabbix would ignore that timestamp anyway.
A moment later, this entry should appear in the latest data page:
If we check the item history, it's the only entry, as Zabbix only cares about new lines now.
The skip parameter only affects behavior when a new log file is monitored. While monitoring a log file with and without that parameter, the Zabbix agent doesn't re-read the file, it only reads the added data.

Filtering for specific strings

Sending everything is acceptable with smaller files, but what if a file has lots of information and we're only interested in error messages? The Zabbix agent may also locally filter the lines and ...


  1. Title Page
  2. Copyright and Credits
  3. About Packt
  4. Contributors
  5. Preface
  6. Getting Started with Zabbix
  7. Getting Your First Notification
  8. Monitoring with Zabbix Agents and Basic Protocols
  9. Monitoring SNMP Devices
  10. Managing Hosts, Users, and Permissions
  11. Detecting Problems with Triggers
  12. Acting upon Monitored Conditions
  13. Simplifying Complex Configurations with Templates
  14. Visualizing Data with Screens and Slideshows
  15. Advanced Item Monitoring
  16. Automating Configuration
  17. Monitoring Web Pages
  18. High-Level Business Service Monitoring
  19. Monitoring IPMI Devices
  20. Monitoring Java Applications
  21. Monitoring VMware
  22. Using Proxies to Monitor Remote Locations
  23. Encrypting Zabbix Traffic
  24. Working Closely with Data
  25. Zabbix Maintenance
  26. Troubleshooting
  27. Being Part of the Community
  28. Assessment
  29. Other Books You May Enjoy
Estilos de citas para Zabbix 4 Network Monitoring

APA 6 Citation

Uytterhoeven, P., & Olups, R. (2019). Zabbix 4 Network Monitoring (3rd ed.). Packt Publishing. Retrieved from (Original work published 2019)

Chicago Citation

Uytterhoeven, Patrik, and Rihards Olups. (2019) 2019. Zabbix 4 Network Monitoring. 3rd ed. Packt Publishing.

Harvard Citation

Uytterhoeven, P. and Olups, R. (2019) Zabbix 4 Network Monitoring. 3rd edn. Packt Publishing. Available at: (Accessed: 14 October 2022).

MLA 7 Citation

Uytterhoeven, Patrik, and Rihards Olups. Zabbix 4 Network Monitoring. 3rd ed. Packt Publishing, 2019. Web. 14 Oct. 2022.