Zabbix Server/Agent 2.0.4 install memo [ZABBIX]
Ubuntu 12.10 ServerへのZabbix 2.0.4インストールメモ
基本的には、マニュアル通り。
# apt-get install php5-gd php5-mysql openipmi libssh2-1 fping libcurl4-openssl-dev snmp build-essential libmysqld-dev libsnmp-dev libssh2-1-dev libopenipmi-dev libiksemel-dev libiksemel-utils
# tar zxvf zabbix-2.0.4.tar.gz
# groupadd zabbix
# useradd -g zabbix zabbix
MySQLでZabbixデータベースを作成します。
データベース名は「zabbix」、接続ユーザ名も「zabbix」、パスワードは「zabbixpass」
これもここを参照。
# cd ./zabbix-2.0.4
# service mysql start
mysql start/running, process 22685
root@ws:/etc/mysql# mysql -uroot
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 36
Server version: 5.5.28-0ubuntu0.12.10.2 (Ubuntu)
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database zabbix character set utf8;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbixpass';
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye
# mysql -uroot zabbix < ./database/mysql/schema.sql
# mysql -uroot zabbix < ./database/mysql/images.sql
# mysql -uroot zabbix < ./database/mysql/data.sql
# ./configure --enable-server --enable-agent --with-mysql --with-jabber --with-libcurl --with-net-snmp --with-ssh2 --with-openipmi
# make install
# echo date.timezone=Asia/Tokyo >> /etc/php5/apache2/php.ini
# echo max_execution_time=300 >> /etc/php5/apache2/php.ini
# chown zabbix:zabbix /usr/local/etc/zabbix_*.conf
# mkdir /var/www/zabbix
# cp -a ./frontends/* /var/www/zabbix/
# chown -R zabbix:zabbix /var/www/zabbix/
# service apache2 restart
# service zabbix-server start
# echo zabbix_agent 10050/tcp >> /etc/services
# echo zabbix_trap 10051/tcp >> /etc/services
設定ファイルは今まで通り。
# vi /usr/local/etc/zabbix_server.conf
# vi /usr/local/etc/zabbix_agentd.conf
Agentも同様。
# ./configure --enable-agent
# make
# make install
細かいところは省いたけど、だいたいこんな感じでよいのでは。
Hostapd configuration [Hostapd で無線LAN AP構築]
ほとんどYoutubeをみないので、気づいていませんでしたが、このオプションをhostapd.confに書いておいてあげないと、どうやらストリーミング系が見られないみたい。
# Low priority / AC_BK = background wmm_ac_bk_cwmin=4 wmm_ac_bk_cwmax=10 wmm_ac_bk_aifs=7 wmm_ac_bk_txop_limit=0 wmm_ac_bk_acm=0 # Note: for IEEE 802.11b mode: cWmin=5 cWmax=10 # # Normal priority / AC_BE = best effort wmm_ac_be_aifs=3 wmm_ac_be_cwmin=4 wmm_ac_be_cwmax=10 wmm_ac_be_txop_limit=0 wmm_ac_be_acm=0 # Note: for IEEE 802.11b mode: cWmin=5 cWmax=7 # # High priority / AC_VI = video wmm_ac_vi_aifs=2 wmm_ac_vi_cwmin=3 wmm_ac_vi_cwmax=4 wmm_ac_vi_txop_limit=94 wmm_ac_vi_acm=0 # Note: for IEEE 802.11b mode: cWmin=4 cWmax=5 txop_limit=188 # # Highest priority / AC_VO = voice wmm_ac_vo_aifs=2 wmm_ac_vo_cwmin=2 wmm_ac_vo_cwmax=3 wmm_ac_vo_txop_limit=47 wmm_ac_vo_acm=0 # Note: for IEEE 802.11b mode: cWmin=3 cWmax=4 burst=102