zabbix

You are currently browsing articles tagged zabbix.

I was asked by Packt Publishing to give the book Mastering Zabbix a review. It’s by Andrea Dalle Vacche and Stefano Kewan Lee, copyright 2013.

I found it most interesting to see what topics they covered as the book title states, “Mastering Zabbix” vs. not covered. Many things I’ve done with Zabbix are not discussed in the book and many things I haven’t done with Zabbix are discussed in the book.

I would say the book is a good resource for anyone who has installed Zabbix and has done some basic things with it. Now that they got their feet wet and are looking to get more out of the software, get the book!

The book covers some very advanced scenarios which I’m not sure should be in the book, but they are. One of which is High Availability. HA in Linux can be done different ways. I’ve done it, it’s not easy. If you haven’t done HA in Linux, then the book will probably shorten the learning curve, but it’s not a cookie cutter system. You’ll end up reading a lot of other docs/books on HA before you’re done.

Overall, it’s a useful book. It’s not perfectly written and easy to follow in some places, but since you probably already have your feet wet, it’s not bad. Definitely worth the online price. I would have bought it if there was a book when I started with Zabbix!

Clink here to check it out.

Original Posting and Script

This is an updated script to install Zabbix 2.2.x on CentOS/Red Hat 6. I have tested it on CentOS 6.5. The script was made for Zabbix 2.2.1, but if you modify the ZBX_VER variable in the script, it should work on any version in the 2.2 series. I have also made updates to the script based in feedback from the old versions.

Basically, the script tries to do a few things and assumes some things:

  • Only run this for NEW installations, you will lose data if you run on an existing installation
  • Run at your own risk
  • Installs Zabbix 2.2.x on CentOS 6
  • Do not corrupt an existing system
  • Be able to run the script over and over in the event that it errors
  • Be somewhat flexible
  • The database server, web server, and zabbix server all run on one box

Zabbix v2.2.x install script

Update: This has been updated for 2.2.x. Follow this link.

Original Posting and Script

This is an updated script to install Zabbix 1.8.x on CentOS/Red Hat 5. I have tested it on CentOS 5.4. The script was made for Zabbix 1.8.0, but if you modify the ZBX_VER variable in the script, it should work on any version in the 1.8 series.

Basically, the script tries to do a few things and assumes some things:

  • Only run this for NEW installations, you will lose data if you run on an existing installation
  • Run at your own risk
  • Installs Zabbix 1.8.x on CentOS 5
  • Do not corrupt an existing system
  • Be able to run the script over and over in the event that it errors
  • Be somewhat flexible
  • The database server, web server, and zabbix server all run on one box

Click here to download it

Update: This has been updated for 1.8.x. Follow this link.

I was following the Zabbix forums and people are constantly having problems installing Zabbix.

To make things easier, I wrote a magic install script for CentOS/Red Hat 5. I have tested it on CentOS 5.2.

Basically, the script tries to do a few things and assumes some things:

  • Only run this for NEW installations, you will lose data if you run on an existing installation
  • Run at your own risk
  • Installs Zabbix 1.6.1 on CentOS 5.2
  • Do not corrupt an existing system
  • Be able to run the script over and over in the event that it errors
  • Be somewhat flexible
  • The database server, web server, and zabbix server all run on one box

One final note, I did peruse a few other CentOS install guides, all of which will probably work, but all of them follow many bad practices. The magic script does a far better job and requires less effort, go figure.

Click here to download it

As of this writing, Etch is the current “stable” version of Debian.

This is how to install Zabbix!

  1. Add an unstable deb-src repository to your sources.list. If you have problems later, make sure the following deb-src line is the only deb-src line in your sources.list file.
    echo "deb-src http://ftp.us.debian.org/debian/ unstable main contrib non-free" >> /etc/apt/sources.list
  2. Update your package repository
    apt-get update
  3. Install necessary packages for this compiling project
    apt-get install libcurl3-dev build-essential automake1.9  libsnmp9-dev libiksemel-dev libopenipmi-dev libpq-dev
  4. Download source
    cd /tmp
    apt-get source zabbix
    cd zabbix-1.6.1
  5. Modify source because etch doesn’t have libcurl4. Modify the control file (line 6) where it says “libcurl4-gnutls-dev” with “libcurl3-dev”
    vi debian/control
  6. Compile source. If you’re missing packages, this command will tell you what other packages you need to install before this command works properly.
    dpkg-buildpackage -rfakeroot
  7. Install fresh packages
    cd ..
    ls -l *deb
    dpkg -i ./<zabbix package of your choice>.deb

All done. Remember, this guide doesn’t tell you how to use Zabbix. I suggest you look in the /usr/share/doc/zabbix* directories that the packages created. Also, read the documentation, forums, wiki, etc.

Enjoy.