@1.8.2@Debian squeeze
初期状態で、zabbix_agentではデータが取れるがzabbix_getでは上記エラーで取れなかった。
zabbix_agent -t system.uname system.uname [t|Linux hostname 2.6.32-5-686 #1 SMP Sat Oct 30 22:47:19 UTC 2010 i686 GNU/Linux]
$ zabbix_get -s localhost -k "system.uname" zabbix_get [7075]: Get value error: *** Cannot connect to [localhost]:10055 [Connection refused] $ zabbix_get -s 127.0.0.1 -k "system.uname" zabbix_get [7080]: Get value error: *** Cannot connect to [127.0.0.1]:10050 [Connection refused]
telnetでもすぐにセッションが切られる
$ telnet 127.0.0.1 10050 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host.
下記を修正
# diff -uNr /etc/zabbix/zabbix_agentd.conf.bak /etc/zabbix/zabbix_agentd.conf --- /etc/zabbix/zabbix_agentd.conf.bak 2010-12-01 00:00:00.000000000 +0900 +++ /etc/zabbix/zabbix_agentd.conf 2010-12-01 00:00:01.000000000 +0900 @@ -10,7 +10,7 @@ # Note that hostnames must resolve hostname->IP address and # IP address->hostname. -Server=localhost +Server=127.0.0.1 # Server port for sending active checks
# /etc/init.d/zabbix-agent restart Stopping Zabbix agent: zabbix_agentd. Starting Zabbix agent: zabbix_agentd.
127.0.0.1で通るようになった。
$ zabbix_get -s 127.0.0.1 -k "system.uname" Linux sc440 2.6.32-5-686 #1 SMP Sat Oct 30 22:47:19 UTC 2010 i686 GNU/Linux
localhostでは相変わらず通らない。
$ zabbix_get -s localhost -k "system.uname" zabbix_get [20042]: Get value error: *** Cannot connect to [localhost]:10050 [Connection refused]
telnetではすぐには切られなくなった。
$ telnet localhost 10050 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. ZBXDZBX_NOTSUPPORTEDConnection closed by foreign host.
めも。