- 追加された行はこの色です。
- 削除された行はこの色です。
** インストール [#u5993c33]
$ brew install --agent-only zabbix
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
restview
==> Installing dependencies for zabbix: pcre
==> Installing zabbix dependency: pcre
==> Downloading https://homebrew.bintray.com/bottles/pcre-8.42.high_sierra.bottl
######################################################################## 100.0%
==> Pouring pcre-8.42.high_sierra.bottle.tar.gz
🍺 /usr/local/Cellar/pcre/8.42: 204 files, 5.3MB
Warning: zabbix: --agent-only was deprecated; using --without-server-proxy instead!
==> Installing zabbix --without-server-proxy
==> Downloading https://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest
==> Downloading from https://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20La
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/zabbix/3.4.8 --sysconfdir=/usr/local/
==> make install
🍺 /usr/local/Cellar/zabbix/3.4.8: 13 files, 1.4MB, built in 1 minute 17 seconds
$ sudo cp -pfr /usr/local/Cellar/
gettext/ libidn2/ libunistring/ openssl/ pcre/ wget/ zabbix/
$ sudo cp -pfr /usr/local/Cellar/zabbix/3.4.8/
.brew/ COPYING INSTALL_RECEIPT.json README sbin/
AUTHORS ChangeLog NEWS bin/ share/
***設定 [#naa85cfd]
$ sudo cp -pfr /usr/local/etc/zabbix/zabbix_agentd.conf /usr/local/etc/zabbix/zabbix_agentd.conf.20180503
$ sudo vi /usr/local/etc/zabbix/zabbix_agentd.conf
$ diff /usr/local/etc/zabbix/zabbix_agentd.conf /usr/local/etc/zabbix/zabbix_agentd.conf.20180503
93c93
< Server=127.0.0.1,192.168.10.0/24
---
> Server=127.0.0.1
***起動確認 [#s4d99d7f]
$ sudo /usr/local/sbin/zabbix_agentd -c /usr/local/etc/zabbix/zabbix_agentd.conf
$ ps -ef | grep zabbix
505 7156 1 0 10:35PM ?? 0:00.01 /usr/local/sbin/zabbix_agentd -c /usr/local/etc/zabbix/zabbix_agentd.conf
505 7157 7156 0 10:35PM ?? 0:00.00 /usr/local/sbin/zabbix_agentd: collector [idle 1 sec]
505 7158 7156 0 10:35PM ?? 0:00.01 /usr/local/sbin/zabbix_agentd: listener #1 [waiting for connection]
505 7159 7156 0 10:35PM ?? 0:00.01 /usr/local/sbin/zabbix_agentd: listener #2 [waiting for connection]
505 7160 7156 0 10:35PM ?? 0:00.01 /usr/local/sbin/zabbix_agentd: listener #3 [waiting for connection]
505 7161 7156 0 10:35PM ?? 0:00.01 /usr/local/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
501 7165 915 0 10:35PM ttys000 0:00.00 grep zabbix
停止は以下の通り
$ sudo kill -TERM `cat /tmp/zabbix_agentd.pid`
*** [#kbf07335]