Book Image

Zabbix 1.8 Network Monitoring

By : Rihards Olups
Book Image

Zabbix 1.8 Network Monitoring

By: Rihards Olups

Overview of this book

Imagine you're celebrating the start of the weekend with Friday-night drinks with a few friends. And then suddenly your phone rings -- one of the servers you administer has gone down, and it needs to be back up before tomorrow morning. So you drag yourself back to the office, only to discover that some log files have been growing more than usual over the past few weeks and have filled up the hard drive. While the scenario above is very simplistic, something similar has happened to most IT workers at one or another point in their careers. To avoid such situations this book will teach you to monitor your network hardware, servers, and web performance using Zabbix- an open source system monitoring and reporting solution.The versatility of Zabbix allows monitoring virtually anything, but getting started with the new concepts can take some time. This book will take you through the most common tasks in a hands-on, step by step manner.Zabbix is a very flexible IT monitoring suite, but not every part of it is immediately clear to new users. Following the instructions in this book should allow you to set up monitoring of various metrics on various devices, including Linux and Windows machines, SNMP devices, IPMI enabled server,s and other network attached equipment. You will learn to define conditions – such a temperature being too high or service being down – and act upon them by notifying user by email, SMS, or even restarting service. You will learn to visualize the gathered data with graphs and the various tips and tricks that are provided will help to use Zabbix more efficiently and avoid common pitfalls.This book covers setting up Zabbix from the scratch and gradually introduces basic components of Zabbix, moving to more advanced topics later. Book's scope is based on the author's experience of working with Zabbix for many years, as well as on the questions users have asked on the Zabbix IRC channel and forums.
Table of Contents (22 chapters)
Zabbix 1.8 Network Monitoring
Credits
About the Author
About the Reviewers
Preface
6
Acting Upon Monitored Conditions

Appendix A. Troubleshooting

Installing and configuring Zabbix can happen without a hiccup for one user and with a constant stream of problems for another. The reasons for the problems can differ from user to user - buggy libraries, bad distribution packaging, unintuitive configuration in Zabbix, or maybe even an occasional bug in Zabbix itself. Here we will look at common problems new users experience when performing various tasks:

  • Setting up the initial Zabbix installation

  • Working with the web frontend

  • Monitoring different devices

  • Configuring thresholds and alerting

Installation

There are several common stumbling blocks in the installation process that are sometimes caused by well hidden factors.

Compilation

  1. Q: I am trying to compile Zabbix on a 64-bit distribution. I have the corresponding development packages installed, but Zabbix claims they are not present.

  2. A: Double check that development packages are installed for the correct architecture.

  3. Q: I am trying to compile Zabbix on CentOS/RedHat. I have curl development packages installed for the correct architecture, but Zabbix complains about them being missing.

  4. A: On some CentOS/RedHat versions such an error can be because one or more of the following development packages are also required:

    • e2fsprogs-devel

    • krb5-devel

    • libgssapi-devel

  5. Q: I am trying to compile Zabbix on SLES, but Zabbix complains about a missing Net-SNMP development library, even though it is installed.

  6. A: There are two possible solutions, depending on SLES version:

    • Install the package named tcpd-devel

    • Run export CFLAGS=-lssl before configure

  1. Q: I am trying to compile Zabbix on CentOS/RedHat, but Zabbix complains about a missing Net-SNMP development library, even though it is installed.

  2. A: Install the package named openssl-devel.

  3. Q: Compilation fails with:

/usr/bin/ld: cannot find -lc
  1. A: Install the package named glibc-devel.

  2. Q: I am trying to compile Zabbix from svn, but the configure script fails with an error:

syntax error near unexpected token `IKSEMEL,iksemel,'
  1. A: Install the pkg-config package and re-run the commands to generate the configure script.

  2. Q: I am trying to compile Zabbix, but it fails.

  3. A: It is useful to reduce the number of possible causes. Verify that you are not compiling with --enable-static that is known to cause compilation problems. If compilation fails without that flag, check config.log file contents in the source directory. It often contains exact error details.

Frontend

  1. Q: I have installed the Zabbix frontend. What's the default username and password?

  2. A: The username is admin, and the password is zabbix.

  3. Q: I have installed the frontend, but it says at the top of the page "This file is a place-holder.", along with other text.

  4. A: This is a Fedora/EPEL packages specific problem - remove conf/zabbix.conf.php and regenerate it with the installation wizard, or copy zabbix.conf.php.example to zabbix.conf.php and edit it manually.

Starting services

  1. Q: I am attempting to start the Zabbix server or agent daemon, but it fails, mentioning semaphores. What's wrong?

  2. A: This usually happens if you have attempted to start an older version of Zabbix daemon previously. Rebooting the server helps, but is often too drastic - you can list semaphores and shared memory segments with command ipcs. With all Zabbix services stopped, you can remove Zabbix-related structures with ipcrm. Consult the documentation for these commands for more details.