Zabbix installation for SAGrid distributed monitor - CentOS

This HOWTO was written by StavrosLambropoulos, it is a first draft of the Zabbix Installation on CentOS.

Repositories and setup

Ordinarily I would put the tenet mirror http://centos.mirror.ac.za in the /etc/yum.repos.d directory but it gave me errors with the metadata when I tried installing some of the packages, so I left it to the default repos. Update the libraries and versions of software : yum update

Prerequisite packages

The following packages are required on the machine :
  • compilers - if not already there : yum install gcc
  • make - If not already there : yum install make
  • web server (httpd/apache) : yum install httpd ; if it gives errors, run : yum install apr.x86_64apr-util.x86_64 then rerun yum install httpd
  • MYSQL (Database can also be Oracle or PostgreSQL? ) In this case I opted for mysql; yum install mysql mysql-server mysql-devel
  • NET-SNMP - yum install net-snmp net-snmp-utils net-snmp-libs
  • CURL - yum install curl curl-devel
  • NTP - yum install ntp
  • PHP - yum install php php-gd php-bcmath php-mysql
  • IKSEMEL and FPING :download the files necessary :
     http://dag.wieers.com/rpm/packages/iksemel/iksemel-1.3-1.el5.rf.x86_64.rpm
    wget http://dag.wieers.com/rpm/packages/iksemel/iksemel-devel-1.3-1.el5.rf.x86_64.rpm
    http://dag.wieers.com/rpm/packages/fping/fping-2.4-1.b2.2.el5.rf.x86_64.rpm
    rpm -ivh iksemel-1.3-1.el5.rf.x86_64.rpm iksemel-devel-1.3-1.el5.rf.x86_64.rpm fping-2.4-1.b2.2.el5.rf.x86_64.rpm
    chmod 7555 /usr/sbin/fping
    • note 1 - you can also enable the DAG repository in /etc/yum.repos.d
    • note 2 - this should be done with yum localinstall xxx to include the rpms and their dependencies in the yum metadata on the local machine.

Time synchronisation

Startup the time server for syncing the time :
/etc/init.d/ntpd start

Installation and configuration of Zabbix :

  • Create Zabbix user :
    adduser zabbix
  • Download and Untar Zabbix stable version 1.6.5 :
    wget http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/1.6.5/zabbix-1.6.5.tar.gz?use_mirror=fastbull
    tar xzvf zabbix-1.6.5.tar.gz
  • create the Zabbix database and grant access to a mysql zabbix user :
    mysql -u root 
    mysql> create database zabbix;
    mysql> Grant DROP, INDEX, CREATE, SELECT, INSERT, UPDATE, ALTER, DELETE on zabbix.*
    TO zabbixmysqluser@localhost IDENTIFIED BY "zabbixmysqlpass";
  • Create the DB Schema (from extracted examples) (ALERT! - can we have a link to these examples, or some reference to the documentation here ?)

-- BruceBecker - 23 Jul 2009

Topic revision: r2 - 24 Jul 2009 - 13:07:52 - VanEckA
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback