Installation on Fedora Core 6
ZABBIX is software for monitoring of your applications, network and servers. ZABBIX supports both polling and trapping techniques to collect data from monitored hosts. A flexible notification mechanism allows easy and quickly configure different types of notifications for pre-defined events
1. update and intstall package
#yum clean all
#yum -y update yum
#yum -y update httpd
Iksemel library and header files
Required to enable Jabber messaging. Optional.
#yum -y install iksemel
#yum -y install jabberd
#yum -y install php php-mysql mysql-server gcc-gfortran gcc-c++ gcc net-snmp-devel mysql-devel php-bcmath php-gd gd zabbix-agent
#service httpd start
#service mysqld start
#service jabberd start
2. download package Zabbix
#cd /usr/src/
#wget http://nchc.dl.sourceforge.net/sourceforge/zabbix/zabbix-1.4.2.tar.gz
3. extractl zabbix
#tar xvfz zabbix*.gz
#cd zabbix-1.4.2
4. config mysql
#mysql -u root
mysql>SET PASSWORD FOR root@localhost=PASSWORD('new_password');
mysql>quit
#mysql -u root -p
Enter password:
mysql>create database zabbix;
mysql>quit
5. install Database
#cd create/schema
#cat mysql.sql mysql -u root -p zabbix
#cd ../data
#cat data.sql mysql -u root -p zabbix
#cat images_mysql.sql mysql -u root -p zabbix
#cd ..
#cd ..
6. install Zabbix
#./configure --enable-server --with-mysql --with-net-snmp –with-jabber –with-libcurl
#make install
#mkdir /etc/zabbix
#cp misc/conf/zabbix_server.conf /etc/zabbix/
7. config Zabbix
#vi /etc/zabbix/zabbix_server.conf
Server=1 --------------------------> add
StartSuckers=6 -----------------------> add
StartTrappers=5 ----------------------> disable #
ListenPort=10051 ---------------------> disable #
HousekeepingFrequency=1 -------------> disable #
UnavailablePeriod=20 ------------------> add
PidFile=/var/tmp/zabbix_server.pid
LogFile=/tmp/zabbix_server.log
FpingLocation=/usr/sbin/fping
AlertScriptsPath=/home/zabbix/bin/
DBName=zabbix
DBUser=root
DBPassword=1234567
8. Start server
#cd /usr/local/bin
#./zabbix_server or
#cat /tmp/zabbix_server.log
9. test port 10051
#telnet localhost 10051
10. config agentd
#vi /etc/zabbix/zabbix_agentd.conf
Server=127.0.0.1
Hostname=localhost
StartAgents=5
DebugLevel=3
PidFile=/var/tmp/zabbix_agentd.pid
LogFile=/tmp/zabbix_agentd.log
Timeout=3
11. config Database
#cd /var/www/html
#vi /usr/src/zabbix-1.4.2/frontends/php/include/db.inc.php
$DB_TYPE ="MYSQL";
$DB_SERVER ="localhost";
$DB_DATABASE ="zabbix";
$DB_USER ="root";
$DB_PASSWORD ="";
#cp -r /usr/src/zabbix-1.4.2/frontends/php/* ./
#ls
- Open browser type ip Zabbix server.
- Open status Zabbix Server to Activate, go to Menu Configuration --> Hosts press ZABBIX Server --> change ip from 127.0.0.1 to IP ZABBIX Server.
- Check status server go to Menu Configuration --> Hosts --> ZABBIX Server click ZABBIX Server, status show Available.
- Add server go to Menu Configuration --> Hosts and config
- Go to Server open service ZABBIX.
- We investigate on server log to make sure that its connect ( /var/log/zabbix/zabbix_agentd.log).
- Go to create graphs for server.
- Create graph finish then go to Screen menu for matching graph with server.
Server will monitoring
for linux
- yum install zabbix-agent
- vi /etc/zabbix/zabbix_agentd.conf
Server= ip ZABBIX server
Hostname= ip host
- /etc/init.d/zabbix-agent restart
- #ntsysv check zabbix-agent
- vi /var/log/zabbix/zabbix_agentd.log
for windows
download from http://www.suiviperf.com/zabbix/
- double click zabbix_agent-1.4.1_installer.exe
- Next
- I Agree
- Next
- Zabbix Server Name: Server Zabbix, Hostname: My PC
- Install
- Completed
Run Service go to
- start
- Control Panel
- Administrative Tools
- Services
- ZABBIX Agent start
No comments:
Post a Comment
Note: only a member of this blog may post a comment.