zabbix2.0で値が取得できない

zabbix1.8.10からzabbix2.0.5にアップグレードしたのですが、アップグレード後zabbixから値が取得出来ないのですが理由がわかりません。
なぜ取得できないのか理由が知りたいのですが、ご教授頂けないでしょうか。

ホストの情報は以下のとおりです。
【zabbix1.8】
======================================
OS : CentOS 5.6 - Kernel 2.6.21
Apache : 2.2.3
MySQL : 5.5.12
PHP : 5.3.8
======================================

【zabbix2.0】
======================================
OS : AmazonLinux(CentOS 6相当) - Kernel 3.7.37
Apache : 2.2.24
MySQL : 5.5.30
PHP : 5.3.20
======================================

上記ホストでzabbix-serverから同ホストにインストールされたzabbix-agentから値を取得できない状況です。
server、agentでそれぞれ以下のログが出力されております

DebugLebel = 3
*** zabbix-server ***
18538:20130402:101820.900 cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not found
18521:20130402:101902.084 no records in table 'config'
18521:20130402:102002.096 no records in table 'config'
18538:20130402:102020.928 cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not found
18521:20130402:102102.108 no records in table 'config'

*** zabbix-agent ***
18110:20130402:101420.838 No active checks on server: host [Zabbix server] not found
18110:20130402:101620.867 No active checks on server: host [Zabbix server] not found
18110:20130402:101820.901 No active checks on server: host [Zabbix server] not found
18110:20130402:102020.928 No active checks on server: host [Zabbix server] not found
18110:20130402:102220.988 No active checks on server: host [Zabbix server] not found

DebugLebel = 4
*** zabbix-server ***
20960:20130402:103110.547 In get_values()
20960:20130402:103110.548 In DCconfig_get_poller_items() poller_type:0
20960:20130402:103110.548 End of DCconfig_get_poller_items():0
20960:20130402:103110.548 End of get_values():0
20960:20130402:103110.548 poller #4 spent 0.000224 seconds while updating 0 values
20960:20130402:103110.548 In DCconfig_get_poller_nextcheck() poller_type:0
20960:20130402:103110.548 End of DCconfig_get_poller_nextcheck():-1
20960:20130402:103110.548 sleeping for 5 seconds
20995:20130402:103110.553 In process_proxy()
20995:20130402:103110.561 In DCconfig_get_proxypoller_hosts()
20995:20130402:103110.561 End of DCconfig_get_proxypoller_hosts():0
20995:20130402:103110.561 End of process_proxy()
20995:20130402:103110.561 proxy poller #1 spent 0.007885 seconds while processing 0 proxies
20995:20130402:103110.561 In DCconfig_get_proxypoller_nextcheck()
20995:20130402:103110.561 End of DCconfig_get_proxypoller_nextcheck():-1
20995:20130402:103110.561 sleeping for 5 seconds
20993:20130402:103110.553 In process_escalations()
20993:20130402:103110.561 query [txnlev:1] [begin;]
20963:20130402:103110.554 In get_values()
20963:20130402:103110.562 In DCconfig_get_poller_items() poller_type:0
20963:20130402:103110.562 End of DCconfig_get_poller_items():0
20963:20130402:103110.562 End of get_values():0
20963:20130402:103110.562 poller #5 spent 0.008148 seconds while updating 0 values
20963:20130402:103110.562 In DCconfig_get_poller_nextcheck() poller_type:0
20963:20130402:103110.562 End of DCconfig_get_poller_nextcheck():-1
20963:20130402:103110.562 sleeping for 5 seconds
20993:20130402:103110.562 query [txnlev:1] [select escalationid,actionid,triggerid,eventid,r_eventid,esc_step,status,nextcheck from escalations where 1=1 and escalationid between 0 and 99999999999999 order by actionid,triggerid,escalationid]
20993:20130402:103110.562 query [txnlev:1] [commit;]
20993:20130402:103110.563 End of process_escalations()
20993:20130402:103110.563 escalator #1 spent 0.009176 seconds while processing escalations
20993:20130402:103110.563 sleeping for 3 seconds
20997:20130402:103110.556 In collect_selfmon_stats()
20997:20130402:103110.563 End of collect_selfmon_stats()
20997:20130402:103110.563 sleeping for 1 seconds
20977:20130402:103110.560 In process_httptests()
20977:20130402:103110.563 query [txnlev:0] [select t.httptestid,t.name,t.macros,t.agent,t.authentication,t.http_user,t.http_password from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.nextcheck<=1364866270 and mod(t.httptestid,1)=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0) and t.httptestid between 0 and 99999999999999]
20977:20130402:103110.563 End of process_httptests()
20977:20130402:103110.563 http poller #1 spent 0.003795 seconds while updating HTTP tests
20977:20130402:103110.563 query [txnlev:0] [select min(t.nextcheck) from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and mod(t.httptestid,1)=0 and t.status=0 and h.proxy_hostid is null and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0) and t.httptestid between 0 and 99999999999999]
20977:20130402:103110.564 No httptests to process in get_minnextcheck.
20977:20130402:103110.564 sleeping for 5 seconds
20971:20130402:103111.166 Trapper got [] len 0
20997:20130402:103111.563 In collect_selfmon_stats()
20997:20130402:103111.563 End of collect_selfmon_stats()
20997:20130402:103111.563 sleeping for 1 seconds
20997:20130402:103112.563 In collect_selfmon_stats()
20997:20130402:103112.564 End of collect_selfmon_stats()

*** zabbix-agent ***
21159:20130402:103452.033 In update_cpustats()
21159:20130402:103452.033 End of update_cpustats()
21163:20130402:103452.039 In send_buffer() host:'127.0.0.1' port:10051 values:0/100
21163:20130402:103452.039 End of send_buffer():SUCCEED
21163:20130402:103452.040 Sleeping for 1 second(s)
21159:20130402:103453.033 In update_cpustats()
21159:20130402:103453.033 End of update_cpustats()
21163:20130402:103453.040 In send_buffer() host:'127.0.0.1' port:10051 values:0/100
21163:20130402:103453.040 End of send_buffer():SUCCEED
21163:20130402:103453.040 Sleeping for 1 second(s)
21159:20130402:103454.034 In update_cpustats()
21159:20130402:103454.034 End of update_cpustats()
21163:20130402:103454.040 In send_buffer() host:'127.0.0.1' port:10051 values:0/100
21163:20130402:103454.040 End of send_buffer():SUCCEED
21163:20130402:103454.040 Sleeping for 1 second(s)
21159:20130402:103455.034 In update_cpustats()
21159:20130402:103455.034 End of update_cpustats()
21163:20130402:103455.040 In send_buffer() host:'127.0.0.1' port:10051 values:0/100
21163:20130402:103455.040 End of send_buffer():SUCCEED
21163:20130402:103455.040 refresh_active_checks('127.0.0.1',10051)
21163:20130402:103455.041 Sending [{
"request":"active checks",
"host":"Zabbix server",
"ip":"127.0.0.1"}]
21163:20130402:103455.041 Before read
21163:20130402:103455.042 Got [{
"response":"failed",
"info":"host [Zabbix server] not monitored"}]
21163:20130402:103455.042 In parse_list_of_checks()
21163:20130402:103455.042 In disable_all_metrics()
21163:20130402:103455.042 No active checks on server: host [Zabbix server] not monitored
21163:20130402:103455.042 In process_active_checks('127.0.0.1',10051)
21163:20130402:103455.042 End of process_active_checks()
21163:20130402:103455.042 In get_min_nextcheck()
21163:20130402:103455.042 Sleeping for 1 second(s)
21159:20130402:103456.034 In update_cpustats()
21159:20130402:103456.035 End of update_cpustats()
21163:20130402:103456.042 In send_buffer() host:'127.0.0.1' port:10051 values:0/100
21163:20130402:103456.042 End of send_buffer():SUCCEED
21163:20130402:103456.042 Sleeping for 1 second(s)
21159:20130402:103457.035 In update_cpustats()
21159:20130402:103457.035 End of update_cpustats()
21163:20130402:103457.043 In send_buffer() host:'127.0.0.1' port:10051 values:0/100
21163:20130402:103457.043 End of send_buffer():SUCCEED
21163:20130402:103457.043 Sleeping for 1 second(s)
21159:20130402:103458.035 In update_cpustats()
21159:20130402:103458.035 End of update_cpustats()
21163:20130402:103458.043 In send_buffer() host:'127.0.0.1' port:10051 values:0/100
21163:20130402:103458.043 End of send_buffer():SUCCEED
21163:20130402:103458.043 Sleeping for 1 second(s)

その他必要な情報等ございましたらご指摘下さい。
以上、宜しくお願いいたします。

コメント表示オプション

お好みのコメント表示方法を選び「設定の保存」をクリックすると変更が反映されます。
ユーザー TNK の写真

Zabbixサーバ側で

18538:20130402:101820.900 cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not found

というログが出力されるということは、「Zabbix server」が監視
対象として有効になっていません。
同様に、Zabbixサーバ側で、

18521:20130402:101902.084 no records in table 'config'

というログが出力されるということは、configテーブルからデフォ
ルトの設定値を読み出せていません。レコードがないということは、
デフォルト値が登録されていません。

もしかして、新規に2.0.5の環境を構築しなおしされたのであれば、
data.sqlが読み込まれていないと思われます。

新規に2.0.xの環境を作成した際には、スキーマの作成(schema.sql)
だけではなく、初期設定値(data.sql)や初期画像データ(images.sql)
を読み込む必要があります。
順序的には、

 schema.sql -> image.sql -> data.sql

になります。

詳細な手順は、以下のURLをご参照ください。

ご参考:
 https://www.zabbix.com/documentation/2.0/manual/installation/install_from_packages

ユーザー pegu の写真

ご回答ありがとうございます。

ご指摘の通り、今回新規に環境を構築いたしましたが、DBが1.8のデータをバックアップから展開しており、ご提示頂いた方法では既存のデータが失われてしまうかと思うのですがいかがでしょうか。

upgradeの手順が以下のURLに提示されておりましたので、今回はそちらの手順で作業を進めております

https://www.zabbix.com/documentation/2.0/manual/installation/upgrade

手順通りに実施した結果、GUI上からは特に問題がなかったように見受けられたため、注視しておりませんでしたが手順の『6 Upgrade the database』にてエラーが発生いたしますので以下にエラー内容を記載します。

===========================================
# ./upgrade zabbix -uzabbix -p○○○○

bash >= 4.1 detected
Checking for 'Disabled' user group... found, not doing anything.
Checking for 'Debug' user group... not found, adding.
./upgrade: line 58: 11
100100000000022+1: 表現にシンタックスエラー (error token is "100100000000022+1")
./upgrade: line 63: 11
100100000000022+1: 表現にシンタックスエラー (error token is "100100000000022+1")
Checking for hosts not belonging to any group... found.
Group 'none' does not exist, creating it and adding all orphaned hosts to it.
Added 43 hosts to group 'none'. Move them to correct groups manually.
... checking for hosts not belonging to any group took 0:00:03
===========================================

上記エラーでご指摘いただいたデフォルトのレコードのインポートに失敗しているのでしょうか。

情報が小出しになってしまい、申し訳ございませんでした。

ユーザー TNK の写真

もちろん、新規構築してしまっては1.8のデータは引き継げません。

詳細は調べなおしますが、インポートに失敗しているようです。
再度手順をご確認ください。

ユーザー TNK の写真

マニュアルを確認しましたが、どこにもupgradeを実行するという
手順は見つけられませんでした。

きちんとバックアックを取得されているのであれば、patch.sqlの
みを読み込めば良いはずです。

以下のURLも参考になると思いますのでご参照ください。

ご参考:
 http://thinkit.co.jp/story/2012/04/27/3535

ユーザー pegu の写真

ご確認頂きありがとうございました。

ご提示頂いた手順を試して見ましたが、うまくいきませんでした。

今回は過去データについてはバックアップを保持して、一旦破棄する方向になりそうです。

色々、ご丁寧にご対応いただきありがとうございました。

ユーザー TNK の写真

ご参考までに、どのような操作を行われて、どのような結果(ログ)が
出力されてうまくいかなかったのかをお教えください。