반응형

Spine / Poller 설정


 - cacti 는 기본적으로 매 5분 단위로 체크를 하게 되는데, Spine 를 설정함으로써 매분간 체크를 할 수 있다.

 - Spine 를 설치하면 multi process 및 thread로 성능을 향상시킬 수 있다.

 - 이것 또한 해당 까페에 동일하게 잘 정리되어 있지만 여기서 에러난 부분에 대해서 정리해 보았다.


- 다운로드 : http://www.cacti.net/spine_download.php


wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.8b.tar.gz


압축을 푼 후 ./configure 를 하게 된다. 여기서 에러가 2번 발생한 부분에 대해 정리해 본다.


./configure 

[root@Cacti cacti-spine-0.8.8b]# ./configure

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking whether make supports nested variables... yes

checking for gawk... (cached) gawk

checking for gcc... no

checking for cc... no

checking for cl.exe... no

configure: error: in `/home/spine/cacti-spine-0.8.8b':

configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details


해결방법

yum -y install gcc


설치 후 다시 진행


참조 : http://junemoon.tistory.com/30


./configure


checking for netinet/in_systm.h... yes

checking for netinet/in.h... yes

checking for netinet/ip.h... yes

checking for netinet/ip_icmp.h... yes

checking for unsigned long long... yes

checking for long long... yes

checking for an ANSI C-conforming const... yes

checking for size_t... yes

checking whether time.h and sys/time.h may both be included... yes

checking whether struct tm is in sys/time.h or time.h... time.h

checking return type of signal handlers... void

checking for malloc... yes

checking for calloc... yes

checking for gettimeofday... yes

checking for strerror... yes

checking for strtoll... yes

checking priv.h usability... no

checking priv.h presence... no

checking for priv.h... no

checking whether we are using Solaris privileges... no

checking sys/capability.h usability... no

checking sys/capability.h presence... no

checking for sys/capability.h... no

checking whether we are using Linux Capabilities... no

configure: error: Cannot find MySQL headers.  Use --with-mysql= to specify non-default path.



해결방법


yum install mysql-devel


위의 mysql-devel 설치


설치 후 다시 진행해 보자


./configure


checking for the maximum MySQL buffer size... 65536

checking whether we are using traditional popen... no

checking whether to verify net-snmp library vs header versions... no

checking for glibc gethostbyname_r... yes

checking for Solaris/Irix gethostbyname_r... no

checking for HP-UX gethostbyname_r... no

checking that generated files are newer than configure... done

configure: creating ./config.status

config.status: creating Makefile

config.status: creating config/config.h

config.status: executing depfiles commands

config.status: executing libtool commands


이제 make 및 install 진행해 보자


make && make install


spine.conf 수정


cp /usr/local/spine/etc/spine.conf.dist /usr/local/spine/etc/spine.conf

vi /usr/local/spine/etc/spine.conf


해당 DB 정보들을 수정해 주자

DB_Host         localhost
DB_Database     cacti
DB_User         cacti
DB_Pass         cacti
DB_Port         3306
DB_PreG         0


Cacti 에 등록을 진행하자.

해당 방법들은 모두 캡쳐해서 사진으로 대처




설정이 완료 되면 1분마다 체크하는지 로그를 확인해 보자


이것으로 Spine 설치 및 설정까지 완료 된 것을 확인할 수 있다.


이후 Percona Script 적용까지 진행 해 보았다.


반응형

'Monitoring > Cacti' 카테고리의 다른 글

[Cacti] 설치 -> MySQL Power group 참조  (0) 2016.07.27
반응형

http://cafe.naver.com/mysqlpg/16


해당 까페를 자주 보는데, 여기서 찾아서 진행 했다.

그래서 따로 퍼와서 작성하기에는 문제가 있을것 같아서 해당 링크를 연결했다.



반응형

'Monitoring > Cacti' 카테고리의 다른 글

[Cacti] Spine 설치 에러  (0) 2016.07.27

+ Recent posts