Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Zabbix: Enterprise Network Montioring Made Easy

You're reading from   Zabbix: Enterprise Network Montioring Made Easy Ultimate open source, real-time monitoring tool

Arrow left icon
Product type Course
Published in Feb 2017
Publisher Packt
ISBN-13 9781787129047
Length 1327 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Authors (3):
Arrow left icon
Rihards Olups Rihards Olups
Author Profile Icon Rihards Olups
Rihards Olups
Andrea Dalle Vacche Andrea Dalle Vacche
Author Profile Icon Andrea Dalle Vacche
Andrea Dalle Vacche
Patrik Uytterhoeven Patrik Uytterhoeven
Author Profile Icon Patrik Uytterhoeven
Patrik Uytterhoeven
Arrow right icon
View More author details
Toc

Table of Contents (51) Chapters Close

Zabbix: Enterprise Network Montioring Made Easy
Zabbix: Enterprise Network Montioring Made Easy
Credits
Preface
1. Getting Started with Zabbix FREE CHAPTER 2. Getting Your First Notification 3. Monitoring with Zabbix Agents and Basic Protocols 4. Monitoring SNMP Devices 5. Managing Hosts, Users, and Permissions 6. Detecting Problems with Triggers 7. Acting upon Monitored Conditions 8. Simplifying Complex Configurations with Templates 9. Visualizing Data with Graphs and Maps 10. Visualizing Data with Screens and Slideshows 11. Advanced Item Monitoring 12. Automating Configuration 13. Monitoring Web Pages 14. Monitoring Windows 15. High-Level Business Service Monitoring 16. Monitoring IPMI Devices 17. Monitoring Java Applications 18. Monitoring VMware 19. Using Proxies to Monitor Remote Locations 20. Encrypting Zabbix Traffic 21. Working Closely with Data 22. Zabbix Maintenance 23. Zabbix Configuration 24. Getting Around in Zabbix 25. Groups, Users, and Permissions 26. Monitoring with Zabbix 27. Testing with Triggers in Zabbix 28. Working with Templates 29. Data Visualization and Reporting in Zabbix 30. Monitoring VMware and Proxies 31. Autodiscovery 32. Zabbix Maintenance and API 33. Deploying Zabbix 34. Distributed Monitoring 35. High Availability and Failover 36. Collecting Data 37. Visualizing Data 38. Managing Alerts 39. Managing Templates 40. Handling External Scripts 41. Extending Zabbix 42. Integrating Zabbix Troubleshooting Being Part of the Community Upgrading and Troubleshooting Zabbix Bibliography
Index

Troubleshooting in Zabbix


Sometimes Zabbix can be a real pain to troubleshoot if you don't know where to look. Here are some pointers:

  • Since Zabbix 2.4 you will now see why your item has failed when you hover your mouse over the red box. This can help you a lot.

  • Don't forget that Zabbix logs everything for agent proxy and server under the /var/log/zabbix/ file. If something fails, this is probably the second place to look at.

  • SELinux can mess with your installation too. For example, ping can be blocked by SELinux returning the wrong value as if your host is not reachable. Don't forget that since RHEL 6.5, there are SELinux policies for the agent that can be set as follows:

    setsebool -P zabbix_can_network on
    
  • Even if you have set the Boolean, there can be other issues with SELinux. To investigate this you could run:

    sealert -a /var/log/audit/audit.log
    

SELinux will tell you what it has blocked and why, and it will also try to tell you how to undo this. Most of the time this will work however it's not perfect and sometimes you have to investigate further. To make the sealert parameter working you probably have to install the setroubleshoot package.

For example, creating your own fping module could be done like this:

grep fping /var/log/audit/audit.log | audit2allow -M zabbix_fping
semodule -i zabbix_fping.pp
  • Yet another way to solve your problems is by increasing the debug level of the log file. However, be careful as increasing the log level will give you a lot of information. Since Zabbix 2.4, it is possible to do this without restarting the Zabbix server:

    zabbix_server -c /etc/zabbix/zabbix_server.conf -R log_level_increase
    
  • This will increase the log level for all services. Same can be done for only the Apache service:

    zabbix_server -c /etc/zabbix/zabbix_server.conf -R log_level_increase="http poller"
    

    With the decrease option instead of the increase option you can return back to log level 3.

  • When troubleshooting communication issues between client and server, remember that we have two types of clients. Your client can either be active or passive. In case of an active client, your client needs to be able to connect to port 10051 on the server. In case of a passive client, the server should connect to the client on port 10050. Make sure that both ports can be reached from the client and server. You could use Telnet to test this, for example, telnet <ip> <port>.

  • If you are running an older version of Zabbix, it could be wise to upgrade. Many bugs are fixed in the latest versions and as we mentioned before, you could gain major speed improvements.

  • If you have issues with Zabbix, and you think you have hit a bug, you could have a look at the support page, https://support.zabbix.com. Also, feature requests can be made here if you think Zabbix is missing some important feature. If your company is missing an important feature, they can also sponsor this feature by paying Zabbix for the development. (Remember your company saves lots of money by making use of Zabbix that comes for free. This way they could give back to the community and help Zabbix pay for the development.)

  • Make sure you make use of Network Time Protocol (NTP) servers for your Zabbix server and proxies as it can give issues if you run without them. You can identify the issues by looking at your Zabbix queue. It will show you that data is missing for 5, 10 minutes, or more.

  • If you encounter a problem when working with SNMP, make sure that your device supports the bulk feature. Some devices don't follow standards well, so the solution in that case could be not to make use of the SNMP bulk feature.

  • If monitoring SNMPv3 devices, make sure that msgAuthoritativeEngineID (also known as snmpEngineID or "Engine ID") is never shared by two devices as this will give rise to problems.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image