まず、mysqlにログインして、databaseを作ります。
mysql> create database zabbix character set utf8;
Query OK, 1 row affected (0.03 sec)
zabbix, zabbix-server, zabbix-server-mysqlを入れる
yum install -y zabbix zabbix-server zabbix-server-mysql
パッケージ zabbix は利用できません。
パッケージ zabbix-server-pgsql-3.0.22-1.el6.x86_64 はインストール済みか最新バージョンです
パッケージ zabbix-server-mysql-3.0.22-1.el6.x86_64 はインストール済みか最新バージョンです
何もしません
??
zabix-agentをinstall
cd /usr/share/doc
[vagrant@localhost doc]$ cd zabbix-server-mysql-3.0.22
[vagrant@localhost zabbix-server-mysql-3.0.22]$ ls
AUTHORS COPYING ChangeLog NEWS README create.sql.gz
これ、あってんのか??
cat でsql文を読み込ませて、mysqlを実行
cat create.sql | mysq -u root -p zabbix
まじか、これ?
mysql> use zabbix
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables;
+—————————-+
| Tables_in_zabbix |
+—————————-+
| acknowledges |
| actions |
| alerts |
| application_discovery |
| application_prototype |
| application_template |
| applications |
| auditlog |
| auditlog_details |
| autoreg_host |
| conditions |
| config |
| dbversion |
| dchecks |
| dhosts |
| drules |
| dservices |
| escalations |
| events |
| expressions |
| functions |
| globalmacro |
| globalvars |
| graph_discovery |
| graph_theme |
| graphs |
| graphs_items |
| group_discovery |
| group_prototype |
| groups |
| history |
| history_log |
| history_str |
| history_text |
| history_uint |
| host_discovery |
| host_inventory |
| hostmacro |
| hosts |
| hosts_groups |
| hosts_templates |
| housekeeper |
| httpstep |
| httpstepitem |
| httptest |
| httptestitem |
| icon_map |
| icon_mapping |
| ids |
| images |
| interface |
| interface_discovery |
| item_application_prototype |
| item_condition |
| item_discovery |
| items |
| items_applications |
| maintenances |
| maintenances_groups |
| maintenances_hosts |
| maintenances_windows |
| mappings |
| media |
| media_type |
| opcommand |
| opcommand_grp |
| opcommand_hst |
| opconditions |
| operations |
| opgroup |
| opinventory |
| opmessage |
| opmessage_grp |
| opmessage_usr |
| optemplate |
| profiles |
| proxy_autoreg_host |
| proxy_dhistory |
| proxy_history |
| regexps |
| rights |
| screen_user |
| screen_usrgrp |
| screens |
| screens_items |
| scripts |
| service_alarms |
| services |
| services_links |
| services_times |
| sessions |
| slides |
| slideshow_user |
| slideshow_usrgrp |
| slideshows |
| sysmap_element_url |
| sysmap_url |
| sysmap_user |
| sysmap_usrgrp |
| sysmaps |
| sysmaps_elements |
| sysmaps_link_triggers |
| sysmaps_links |
| timeperiods |
| trends |
| trends_uint |
| trigger_depends |
| trigger_discovery |
| triggers |
| users |
| users_groups |
| usrgrp |
| valuemaps |
+—————————-+
113 rows in set (0.00 sec)