우분투 zabbix-agent 설치

Jmnote (토론 | 기여)님의 2015년 12월 26일 (토) 23:33 판 (→‎확인 2)

1 확인

root@zetawiki:~# aptitude show zabbix-agent | grep ^State
State: not installed

2 설치

root@zetawiki:~# aptitude install zabbix-agent
The following NEW packages will be installed:
  zabbix-agent 
0 packages upgraded, 1 newly installed, 0 to remove and 69 not upgraded.
Need to get 160 kB of archives. After unpacking 770 kB will be used.
Get: 1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe zabbix-agent amd64 1:2.2.2+dfsg-1ubuntu1 [160 kB]
Fetched 160 kB in 1s (120 kB/s)       
Selecting previously unselected package zabbix-agent.
(Reading database ... 80434 files and directories currently installed.)
Preparing to unpack .../zabbix-agent_1%3a2.2.2+dfsg-1ubuntu1_amd64.deb ...
Unpacking zabbix-agent (1:2.2.2+dfsg-1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up zabbix-agent (1:2.2.2+dfsg-1ubuntu1) ...

Creating config file /etc/zabbix/zabbix_agentd.conf with new version
zabbix-agent start/running, process 25987
Processing triggers for ureadahead (0.100.0-16) ...

3 확인 2

root@zetawiki:~# aptitude show zabbix-agent | grep ^State
State: installed
root@zetawiki:~# netstat -tnlp | grep zabbix
tcp        0      0 0.0.0.0:10050           0.0.0.0:*               LISTEN      25987/zabbi_agentd
tcp6       0      0 :::10050                :::*                    LISTEN      25987/zabbi_agentd

4 agent 자동시작 설정

root@zetawiki:~# sysv-rc-conf --list zabbix-agent
zabbix-agent
root@zetawiki:~# sysv-rc-conf zabbix-agent on
root@zetawiki:~# sysv-rc-conf --list zabbix-agent
zabbix-agent 2:on	3:on	4:on	5:on

5 같이 보기