Scientific Linux 6
Sponsored Link

ZABBIX - Install / Configure2011/05/22

 
Install ZABBIX that is Integrated monitoring system. Web Server and MySQL Server are also required.
[1] Install ZABBIX
[root@master ~]#
yum --enablerepo=epel -y install zabbix-server-mysql zabbix-agent zabbix-web-mysql
 
# install from EPEL
# create a database for ZABBIX

[root@master ~]#
mysql -u root -p

Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.52 Source distribution
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
create database zabbix;

Query OK, 1 row affected (0.00 sec)
mysql>
grant all privileges on zabbix.* to zabbix@localhost identified by 'password';

Query OK, 0 rows affected (0.00 sec)
mysql>
flush privileges;

Query OK, 0 rows affected (0.00 sec)
mysql>
exit

Bye
[root@master ~]#
cd /usr/share/doc/zabbix-server-mysql-1.8.5/create/schema

[root@master schema]#
cat mysql.sql | mysql -u root -p zabbix

Enter password:  
# MySQL root password

[root@master schema]#
cd ../data

[root@master data]#
cat data.sql | mysql -u root -p zabbix

Enter password:
[root@master data]#
cat images_mysql.sql | mysql -u root -p zabbix

Enter password:
[root@master data]#
[root@master ~]#
vi /etc/zabbix/zabbix_server.conf
# line 110: uncomment and add DB password for Zabbix

DBPassword=
password
[root@master ~]#
vi /etc/zabbix/zabbix_agentd.conf
# line 91: change to your hostname

Hostname=
master.srv.world
[root@master ~]#
vi /etc/php.ini
# line 440: change to Zabbix recomended

max_execution_time =
600
# line 449: change to Zabbix recomended

max_input_time =
600
# line 457: change to Zabbix recomended

memory_limit =
256M
# line 729: change to Zabbix recomended

post_max_size =
32M
# line 878: change to Zabbix recomended

upload_max_filesize =
16M
# line 946: uncomment and add your timezone

date.timezone =
Asia/Tokyo
[root@master ~]#
vi /etc/httpd/conf.d/zabbix.conf
Alias /zabbix /usr/share/zabbix
<Directory "/usr/share/zabbix">
  Options FollowSymLinks
  AllowOverride None
  Order allow,deny
  Allow from
10.0.0.0/24
 
# change to the range you allow to access

</Directory>
[root@master ~]#
/etc/rc.d/init.d/zabbix-server start

Starting ZABBIX server:   [ OK ]
[root@master ~]#
/etc/rc.d/init.d/zabbix-agent start

Starting ZABBIX agent:   [ OK ]
[root@master ~]#
/etc/rc.d/init.d/httpd restart

Stopping httpd:   [ OK ]
Starting httpd:   [ OK ]
[root@master ~]#
chkconfig zabbix-server on

[root@master ~]#
chkconfig zabbix-agent on

Matched Content