LoginSignup
23
16

More than 5 years have passed since last update.

zabbix agent起動時にactive checkエラーがでる

Posted at

server、agentを同じ機器上で動かして、情報収集をしようとしたところ、
アイコンZのstatusが赤色のまま、、、

ログをみると

/var/log/zabbix/zabbix_agentd.log
6587:20150306:121443.451 no active checks on server [127.0.0.1:10051]: host [zabbix-server] not found
6587:20150306:121643.493 no active checks on server [127.0.0.1:10051]: host [zabbix-server] not found

active checkが失敗している。

関係のありそうなパラメータを確認してみる

zabbix_server.conf
ListenPort=10051
ListenIP=127.0.0.1
zabbix_agentd.conf
 Server=127.0.0.1
 ListenPort=10050
 ListenIP=0.0.0.0
 ServerActive=127.0.0.1:10051
 Hostname=zabbix-server

特に問題なさげ。

/etc/hostsも確認

$ cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 zabbix-server
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
# ping zabbix-server
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.013 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.037 ms

通信もできており、問題なし。

ZabbixのWebUIで登録したホスト情報が”Zabbix Server"となっており、
これをhostsnameの”zabbix-server”に合わせたところ、
正常にデータがとれるようになりました。

WEB-UI側の設定とリンクさせる必要があるんだなというメモです。

23
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
16