zabbix 설치하신분 도와주세요...
zabbix-1.1.2(최신버전)을 설치하려고 합니다.
OS : CentOS - 4.3
kernel : 2.6.x
apache : 2.2.3
php : 5.1.4
mysql : 5.0.22
net-snmp : net-snmp-5.2.2-1.EL4.i386.rpm
zabbix : 1.1.2
홈페이지에 있는 메뉴얼 1.1 버전 설치 보고 따라 했습니다.
install ==========
1) Create the ZABBIX database & adduser zabbix
adduser zabbix
create database zabbix;
cat create/mysql/schema.sql | mysql ?uroot -p zabbix
cat create/data/data.sql | mysql -uroot -p zabbix
2) Configure and compile the source code for your system
./configure --enable-server --enable-agent --with-mysql=/usr/local/mysql --with-net-snmp
3) Make and install everything
make install
4) Configure /etc/services
zabbix_agent 10050/tcp
zabbix_trap 10051/tcp
5) Modify default settings in configuration files
mkdir -p /etc/zabbix
cp /opt/zabbix/misc/conf/* /etc/zabbix
zabbix_server 파일 수정
6) START
/usr/local/bin/zabbix_server start 를 하였으나
File [/var/tmp/zabbix_server.pid] exists. Is this process already running ? 이런 에러가 납니다.
그래서 kilall zabbix로 프로세스 죽였더니
zabbix: no process killed 라고 나오내요..
혹시 필요한 패키지가 있거나 제가 실수한 부분이 있으면 알려주세요.. ㅠㅠ
몇번씩 재컴파일 해보고 해도 마찬가지내여...
..
/var/tmp/zabbix_server.pid 파일을 삭제한후 다시 해보세요.
/etc/zabbix/zabbix_server.conf 파일에서 지정한 LogFile을 참조하셔서 어떤 에러가
나오는지 확인해야 합니다.
이미 해밨습니다.
/var/tmp/zabbix_server.pid 삭제한 후 다시 해보았습니다.
그리고 로그 파일도 보았지만
Failed to connect to database: Error: Can't connect to local MySQL server through socket '/var/tmp/mysql/mysql.sock' (13)
이 에러가 납니다.
그래서 몇차례 /etc/zabbix/zabbix_server.conf에서 경로를 '/var/tmp/mysql/mysql.sock'로 마추어 주었지만 해결이 되지 않았습니다.
이유가 무엇인지 답답합니다..
댓글 달기