1 2 |
#インストール yum install zabbix-agent |
1 2 3 4 5 |
yum install zabbix-server-mysql zabbix-web-mysql https://www.zabbix.com/documentation/2.4/manual/installation/install_from_packages #DB作成 |
1 2 3 4 5 6 7 8 |
shell> mysql -uroot -p<password> mysql> create database zabbix character set utf8 collate utf8_bin; mysql> grant all privileges on zabbix.* to zabbix@localhost identified by '<password>'; mysql> quit; shell> mysql -uzabbix -p<password> zabbix < database/mysql/schema.sql # stop here if you are creating database for Zabbix proxy shell> mysql -uzabbix -p<password> zabbix < database/mysql/images.sql shell> mysql -uzabbix -p<password> zabbix < database/mysql/data.sql |
1 2 3 |
https://www.zabbix.com/documentation/2.4/manual/appendix/install/db_scripts #データ設定 |
1 2 3 4 5 6 7 8 |
shell> mysql -u<username> -p<password> mysql> create database zabbix character set utf8; mysql> quit; shell> cd create/schema shell> cat mysql.sql | mysql -u<username> -p<password> zabbix shell> cd ../data shell> cat data.sql | mysql -u<username> -p<password> zabbix shell> cat images_mysql.sql | mysql -u<username> -p<password> zabbix |
1 2 3 4 5 |
https://www.zabbix.com/documentation/1.8/manual/installation/installation_from_source #設定 vi /etc/services |
1 2 3 4 5 6 7 8 9 |
zabbix-agent 10050/tcp Zabbix Agent zabbix-agent 10050/udp Zabbix Agent zabbix-trapper 10051/tcp Zabbix Trapper zabbix-trapper 10051/udp Zabbix Trapper /etc/init.d/zabbix-agent start /etc/init.d/zabbix-server start vi /etc/httpd/conf.d/zabbix.conf |
1 2 3 4 5 6 |
php_value max_execution_time 300 php_value memory_limit 128M php_value post_max_size 16M php_value upload_max_filesize 2M php_value max_input_time 300 # php_value date.timezone Europe/Riga |
1 |
service httpd restart |