臮…ƒ©ƒƒ‚¯‹‰¼·¼ 2.2 ¤®Zabbix特ˆ¥•™®¤ ï½‍§‹ç¯‰ç·¨ï½‍

  • View
    6.554

  • Download
    7

Embed Size (px)

DESCRIPTION

Zabbix_SIAの公式rpmとMySQL5.6によるZabbix-Serverのインストール手順です。

Text of 臮…ƒ©ƒƒ‚¯‹‰¼·¼...

  • 2.2 Zabbix
  • Twitter @qryuu 2013/8/242
  • 2013/8/243 php WEB MySQL PostgreSQL Oracle CServer Zabbix_agent SNMP IPMI Agent IP
  • 2013/8/244 Zabbix-serverZabbix-Agent ServerAgent IPDNS Zabbix-AgentZabbix-Server AgentServer Agent Zabbix-ServerSNMP-Agent SNMPOID SNMP-AgentZabbix-Server SNMPTrapSNMPTT Zabbix-ServerIPMI-Agent webPing Agent Zabbix- Server Zabbix- Server Zabbix- AgentZabbix- Agent SNMP- AgentSNMP- Agent IPMI- Agent
  • Zabbix_SIAZabbix_Japan 2013/8/245
  • 2013/8/246 Zabbix_SIA RPM zabbix zabbix-agent zabbix-agent zabbix-get zabbix-get zabbix-java-gateway zabbix-java-gateway zabbix-proxy zabbix-proxy zabbix-proxy-mysql MySQLzabbix_proxy zabbix-proxy-pgsql PostgreSQLzabbix-proxy zabbix-proxy-sqlite3 SQLitezabbix-proxy zabbix-release yum install RPM zabbix-sender zabbix-sender zabbix-server zabbix-server zabbix-server-mysql MySQLzabbix-server zabbix-server-pgsql PostgreSQLzabbix-server zabbix-web zabbix-web zabbix-web-japanese zabbix-web-mysql MySQL zabbix-web-pgsql PostgreSQL
  • WEBServerAgent MySQL PostgreSQL,Sqlite ZabbixORACLE DB Oracle 2013/8/247
  • Zabbix RHEL5.x-x86_64/RHEL6.x-x86_64 CentOS5.x-x86-64/CentOS6.x-x86_6x Debian6/Debian7 Ubuntu10.04 LTS/Ubuntu12.04 LTS 2013/8/248 OS
  • CentOS 6.4 x86_64 Basic Server X Windows System,, tigervnc-server SELinux=disabled () sda (/)40GB+sdb(/data) 60GB FWlogin user:zabbix,pw:zabbix user:root,pw: jitakurack 2013/8/249
  • 1. OracleMySQL5.6/Zabbix DB 2. yumZabbix 3. WindowsZabbix-agent 2013/8/2410
  • 1. http://dev.mysql.com/downloads/mysql/ rpm 2. rpm 2013/8/2411 MySQL wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.13-1.el6.x86_64.rpm/from/http://cdn.mysql.com/ http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-shared-compat-5.6.13-1.el6.x86_64.rpm/from/http://cdn.mysql.com/ http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-server-5.6.13-1.el6.x86_64.rpm/from/http://cdn.mysql.com/ http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-devel-5.6.13-1.el6.x86_64.rpm/from/http://cdn.mysql.com/ http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-shared-5.6.13-1.el6.x86_64.rpm/from/http://cdn.mysql.com/
  • shared shared MySQL5.6my.cnf /etc/usr my.cnf 2013/8/2412 MySQL yum install MySQL-{client,devel,server,shared-compat}-5.6.13-1.el6.x86_64.rpm yum install MySQL-shared-5.6.13-1.el6.x86_64.rpm mv /etc/my.cnf /etc/my.cnf.old
  • my.cnf2 2013/8/2413 MySQL vi /usr/my.cnf [mysqld] user=mysql datadir=/data socket=/var/lib/mysql/mysql.sock character-set-server=utf8 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid [mysql] default-character-set=utf8 ### Tuning Setting innodb_file_per_table =1 innodb_autoextend_increment = 1 innodb_file_format=Barracuda innodb_buffer_pool_size = 2G innodb_thread_concurrency = 20 innodb_flush_log_at_trx_commit=2 innodb_log_buffer_size=32M innodb_log_file_size = 256M innodb_support_xa = 0 innodb_checksums = 0 innodb_doublewrite = 0
  • MySQL MySQLroot MySQL 2013/8/2414 MySQL mysql_install_db --datadir=/data --user=mysql service mysql start mysqladmin -u root password 'jitakurack' mysql_secure_installation Enter current password for root (enter for none):jitakurack Change the root password? [Y/n] n #root Remove anonymous users? [Y/n]Y # Disallow root login remotely? [Y/n] Y #root Remove test database and access to it? [Y/n] Y #test DB Reload privilege tables now? [Y/n] Y #
  • Zabbix Zabbix_SIA https://www.zabbix.com/documentation/2.0/manual/i nstallation/install_from_packages 2013/8/2415 Zabbix rpm -ivh http://repo.zabbix.com/zabbix/2.0/rhel/6/x86_64/zabbix-release-2.0- 1.el6.noarch.rpm
  • server,agent,frontend phpOpenIPMIfping net-snmpunixODBC SNMPTT SNMPTrap SNMPTT2 2013/8/2416 Zabbix yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent zabbix-web-japanese zabbix-java-gateway zabbix-sender zabbix-get
  • MySQL Zabbix DB 2013/8/2417 Zabbix_DB mysql -uroot -p Enter password:jitakurack mysql> create database zabbix character set utf8; mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'; mysql> FLUSH PRIVILEGES; mysql> exit cd /usr/share/doc/zabbix-server-mysql-2.0.7/create/ # cat schema.sql |mysql -uzabbix zabbix -p Enter password:zabbix cat images.sql |mysql -uzabbix zabbix -p cat data.sql |mysql -uzabbix zabbix -p
  • 2013/8/2418 Zabbix_DB mysql> ALTER TABLE history ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; mysql> ALTER TABLE history_log ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; mysql> ALTER TABLE history_str ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; mysql> ALTER TABLE history_text ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; mysql> ALTER TABLE history_uint ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; mysql> ALTER TABLE events ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; mysql> SHOW TABLE STATUS LIKE 'history' G
  • 2013/8/2419 Zabbix_Server vi /etc/zabbix/zabbix_server.conf LogFileSize=20 #MB DBHost=localhost #DB DBName=zabbix #DB DBUser=zabbix #DB DBPassword=zabbix #DB StartPollers=10 #SNMP StartIPMIPollers=5 #IPMI StartPollersUnreachable=3 # StartTrappers=5 # StartPingers=5 #Ping StartDiscoverers=5 # StartHTTPPollers=3 #WEB SNMPTrapperFile=/var/log/snmptt/snmptt.log #SNMPTT StartSNMPTrapper=1 #SNMPTT SenderFrequency=30 # # StartDBSyncers=4 #DB Timeout=5 #poller
  • 2013/8/2420 Zabbix_Agent vi /etc/zabbix/zabbix_agentd.conf LogFileSize=5 #0MBlog #SourceIP= #IPIP EnableRemoteCommands=1 #Zabbix system.run LogRemoteCommands=1 #agentd.log Server=127.0.0.1 #IP [,] # ListenIP=0.0.0.0 #IPListen IPListen ServerActive=127.0.0.1 # IP [,] #Hostname=Zabbix server #Agent WEB
  • 2013/8/2421 Zabbix_Agent HostnameItem=system.hostname #AgentOS HostnameHostnameItem RefreshActiveChecks=60 # # BufferSend=5 # # BufferSize=100 # # MaxLinesPerSecond=100 #1log ) # AllowRoot=0 #1root 0zabbix Timeout=5 #agent server UnsafeUserParameters=1 #0 ' ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @
  • 2013/8/2422 chkconfig zabbix-server on chkconfig zabbix-agent on chkconfig httpd on service zabbix-server start service zabbix-agent start service httpd start
  • zabbix-web http:///zabbix 2013/8/2423 Zabbix_WEB
  • Zabbix_WEB 2013/8/2424 [Next]
  • Zabbix_WEB 2013/8/2425 Zabbix-web [Fail] php.ini httpd [Retry] PHP time zone
  • PHP time zone PHP time zone php.inihttpd 2013/8/2426 Zabbix_WEB vi /etc/php.ini date.timezone = Asia/Tokyo service httpd restart
  • Zabbix_WEB 2013/8/2427 [Retry] [OK] [Next>>]
  • Zabbix_WEBDB 2013/8/2428 DB Database type zabbix-web-mysql MySQL [Test connection] [OK] [Next>>]
  • Zabbix_WEBZabbix-Server 2013/8/2429 Zabbix-server Host:Zabbix-serverIP FQDN Port:Zabbix-server Listen Name:Zabbix-WEB [Next>>]
  • Zabbix_WEB 2013/8/2430 []
  • Zabbix_WEB 2013/8/2431 /etc/zabbix/web/zabbix.c onf.php [Finish]
  • Zabbix 2013/8/2432 Zabbix-WEB Username:admin Password:zabbix
  • 2013/8/2433 [profile] [Language] japanese
  • 2013/8/2434 Zabbix
  • 2013/8/2435 Agent Zabbix-Agent SNMPJMX,IPMI []
  • 2013/8/2436
  • 2013/8/2437 [] []
  • 2013/8/2438 Zabbix Zabbix-serverZabbix-agent Zabbix Zabbix-agentZabbix-server Ping SNMP[v1|v2|v3] SNMP SNMP SNMP SNMPTT Zabbix Zabbix-Server 2.2Proxy Zabbix Zabbix-Sender Zabbix Server ODBCSQL IPMI IPMI SSL SSL TELNET TELNET JMX JAVA-VM Zabbix-java-gateway
  • 2013/8/2439
  • 2013/8/