Skip to content

Instantly share code, notes, and snippets.

@kenjiskywalker
Created February 9, 2012 10:29
Show Gist options
  • Save kenjiskywalker/1779123 to your computer and use it in GitHub Desktop.
Save kenjiskywalker/1779123 to your computer and use it in GitHub Desktop.
zabbix-agentのインストール

アカウント作成

$ groupadd zabbix
$ useradd -g zabbix -s /sbin/nologin zabbix
$ mkdir -p /etc/zabbix/logs

インストール

$ cd /usr/local/src/ ; pwd
$ wget "http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/1.8.10/zabbix-1.8.10.tar.gz"
$ tar xzf zabbix-1.8.10.tar.gz
$ ls -ld zabbix-1.8.10
$ cd zabbix-1.8.10/ ; pwd
$ ./configure --enable-agent --with-net-snmp
$ make install

$ cp -ip misc/conf/zabbix_agentd.conf /etc/zabbix/
$ cp -ip /init.d/fedora/core5/zabbix_agentd ; pwd

$ chown zabbix.zabbix /etc/zabbix
$ chkconfig zabbix_agentd on

最低限の設定

LogFile=/etc/zabbix/logs/zabbix_agentd.log
SourceIP=192.168.0.101
Server=192.168.0.101
Hostname=db
ListenIP=192.168.0.102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment