holydiver_777: icon (Default)
[personal profile] holydiver_777
Кризис жанра или пишем о работе.;)

e75bd604428ea9b6015fc85b0d0b9971
ZABBIXсвободная система мониторинга и отслеживания статусов разнообразных сервисов компьютерной сети, серверов и сетевого оборудования, написанная Алексеем Владышевым
Для хранения данных используется MySQL, PostgreSQL, SQLite или Oracle. Веб-интерфейс написан на PHP. ZABBIX поддерживает несколько видов мониторинга:
Simple checks — может проверять доступность и реакцию стандартных сервисов, таких как SMTP или HTTP без установки какого-либо программного обеспечения на наблюдаемом хосте.
ZABBIX agent — может быть установлен на UNIX-подобных или Windows хостах для получения данных о нагрузке процессора, использования сети, дисковом пространстве и т. д.
External check — выполнение внешних программ. ZABBIX также поддерживает мониторинг через SNMP.
Источник: Википедия

Итак, поехали. В качестве OS используется Oracle Linux (OL)-6.4.

. Язык привычный - 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


Продолжение следует....

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

holydiver_777: icon (Default)
holydiver_777

May 2017

S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 26th, 2025 20:17
Powered by Dreamwidth Studios