How to Zabbix on Fedora/CentOS

Nov-16th-2010

Zabbix 1.8: The Ultimate Open Source Monitoring Solution

Zabbix is a network management system created by Alexei Vladishev. It is designed to monitor and track the status of various network services, servers, and other network hardware.

It uses MySQL, PostgreSQL, SQLite or Oracle to store data. Its backend is written in C and the web frontend is written in PHP. Zabbix offers several monitoring options. Simple checks can verify the availability and responsiveness of standard services such as SMTP or HTTP without installing any software on the monitored host. A Zabbix agent can also be installed on UNIX and Windows hosts to monitor statistics such as CPU load, network utilization, disk space, etc. As an alternative to installing an agent on hosts, Zabbix includes support for monitoring via SNMP, TCP and ICMP checks, IPMI and custom parameters.

ZABBIX supports both polling and trapping. All ZABBIX reports and statistics, as well as configuration parameters are accessed through a web-based front end. A web-based front end ensures that the status of your network and the health of your servers can be assessed from any location. Properly configured, ZABBIX can play an important role in monitoring IT infrastructure. This is equally true for small organisations with a few servers and for large companies with a multitude of servers.

Setup Zabbix with mysql support only in 15 minutes.

You can downloda Zabbix Source file from below url :-

http://www.zabbix.com/download.php

ZABBIX Server

Create the ZABBIX superuser account

This is the user the server will run as. For production use you should create a dedicated unprivileged account (‘zabbix’ is commonly used). Running ZABBIX as ‘root’,'bin’, or any other account with special rights is a security risk. Do not do it!

Setup Zabbix with Mysql :-

Untar ZABBIX sources


[root@map007 /opt]# tar -zxvf zabbix-1.8.3.tar.gz

Create the ZABBIX database

[root@map007 /opt]# mysql -u root -p<password>

mysql> create database zabbix;

mysql> quit;

[root@map007 /opt]# cd /opt/zabbix/create/schema

[root@map007 /opt]# cat mysql.sql | mysql -u root -p<password> zabbix

[root@map007 /opt]# cd /opt/zabbix/data

[root@map007 /opt]# cat data.sql | mysql -u root -p<password> zabbix

[root@map007 /opt]# cat images_mysql.sql | mysql -u root -p<password> zabbix.

[root@map007 /opt]# ./configure –enable-proxy –with-mysql –with-net-snmp –with-libcurl –enable-agent –enable-server –with-jabber

[root@map007 /opt]# make install

Configure /etc/services

zabbix-agent 10050/tcp Zabbix Agent

zabbix-agent 10050/udp Zabbix Agent

zabbix-trap 10051/tcp Zabbix Trapper

zabbix-trap 10051/udp Zabbix Trapper

Configure /etc/zabbix/zabbix_agent.conf

Configure /etc/zabbix/zabbix_agentd.conf

Configure /etc/zabbix/zabbix_server.conf

You can find sample file from /opt/zabbix/misc/conf/

Run server processes

[root@map007 /opt]# ./zabbix/src/zabbix_server/zabbix_server

Run agents

[root@map007 /opt]# ./zabbix/src/zabbix_agentd/ zabbix_agentd

Point your browser to ZABBIX

http://localhost/zabbix


For distributed monitoring only!

If used in a distributed environment you have to run:

[root@map007 /opt]# ./zabbix/src/zabbix_server/zabbix_server -n <nodeid>

where Node ID is an unique Node identificator. For example:

[root@map007 /opt]# ./zabbix/src/zabbix_server/zabbix_server -n 1

This will convert database data for use with Node ID ‘1′ and also adds a local node.

================================================================================================

Enjoy Linux !!!

Mega World News Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google Yahoo Buzz StumbleUpon Weekend Joy

Comments

  1. Andrea Said,

    Nice article!
    If you need monitor Oracle and PostgreSQL you can try Orabbix and Postbix released under GLP3
    i hope that other people will find this comment userfull
    more info are available here:
    http://www.smartmarmot.com

Add A Comment

*