. Язык привычный - EN.
[root@bastion ~]# yum --enablerepo=epel -y install zabbix-server-mysql zabbix-agent zabbix-web-mysql # install from EPEL
# create a database for ZABBIX
[root@bastion ~]# 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@bastion ~]# cd /usr/share/doc/zabbix-server-mysql-1.8.5/create/schema
[root@bastion schema]# cat mysql.sql | mysql -u root -p zabbix
Enter password: # MySQL root password
[root@bastion schema]# cd ../data
[root@bastion data]# cat data.sql | mysql -u root -p zabbix
Enter password:
[root@bastion data]# cat images_mysql.sql | mysql -u root -p zabbix
Enter password:
[root@bastion data]# cd
[root@bastion ~]# vi /etc/zabbix/zabbix_server.conf
# line 110: uncomment and add DB password for Zabbix
DBPassword=password
[root@bastion ~]# vi /etc/zabbix/zabbix_agentd.conf
# line 91: change to your hostname
Hostname=bastion.server.com
[root@bastion ~]# 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 = Europa/Kiev
[root@bastion ~]# vi /etc/httpd/conf.d/zabbix.conf
Alias /zabbix /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@bastion ~]# /etc/rc.d/init.d/zabbix-server start
Starting ZABBIX server: [ OK ]
[root@bastion ~]# /etc/rc.d/init.d/zabbix-agent start
Starting ZABBIX agent: [ OK ]
[root@bastion ~]# /etc/rc.d/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@bastion ~]# chkconfig zabbix-server on
[root@bastion ~]# chkconfig zabbix-agent on
Продолжение следует....