# 이 시나리오는 zabbix server 및 agent 를 구동하기 위해 짜여졌으며 각 서비스가 일반적인 경로에 설치되지 않음을 알림니다.
수집을 php가 아닌 쉘로 하는 방법을 찾아봐야 할듯..
1. zabbix agent 설정
- vi /install/zabbix/etc/zabbix_agentd.conf
a. Include=/install/zabbix/etc/zabbix_agentd.conf.d/
b. Server=Zabbix Server IP
c. ServerActive=Zabbix Server IP
d. Hostname=Zabbix Server에 등록된 hostname
- cp /install/tar/zabbix-2.4.6/misc/init.d/fedora/core5/zabbix_agentd /etc/init.d/zabbix_agentd
- vi /etc/init.d/zabbix_agentd
a. ZABBIX_BIN="/install/zabbix/sbin/zabbix_agentd"
- chkconfig zabbix_agentd on
- service zabbix_agentd start
2. mysql plugin 설정
- ss_get_mysql_stats.php
a. cp ss_get_mysql_stats.php /install/zabbix/lib/scripts/
b. vi /install/zabbix/lib/scripts/ss_get_mysql_stats.php
ㄱ. $mysql_user = 'root';
ㄴ. $mysql_password = '패스워드';
- zabbixmysql.conf
a. cp zabbixmysql.conf /install/zabbix/etc/zabbix_agentd.conf.d/
b. vi /install/zabbix/etc/zabbix_agentd.conf.d/
ㄱ. php 경로수정 /install/php/bin/php
ㄴ. ss_get_mysql_stats.php 경로수정 /install/zabbix/etc/zabbix_agentd.conf.d/ss_get_mysql_stats.php
- service zabbix_agentd restart
'Linux' 카테고리의 다른 글
VIrtualBox ova 복원 후 eth0 찾지 못하는 경우 (0) | 2015.11.26 |
---|---|
CentOS ssh 포트변경 (0) | 2015.11.24 |
[6-5] zabbix server 설치 (0) | 2015.10.21 |
[6-4] php 설치 (0) | 2015.10.21 |
[6-3] mysql 설치 (0) | 2015.10.21 |