smokeping 주종 단순 구축

3752 단어 perlsmokeping
다운로드 하여 압축 을 풀다.
wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.8.tar.gz
tar xvzf smokeping-2.6.8.tar.gz
cd mokeping-2.6.8
./configure --prefix=/usr/local/smokeping

다음 과 같이 제시 하면:
** Aborting Configure ******************************

   If you know where perl can find the missing modules, set
   the PERL5LIB environment variable accordingly.

   FIRST though, make sure that 'perl' starts the perl
   binary you want to use for SmokePing.

   Now you can install local copies of the missing modules
   by running

     ./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty

   The RRDs perl module is part of RRDtool. Either use the rrdtool
   package provided by your OS or install rrdtool from source.
   If you install from source, the RRDs module is located
   PREFIX/lib/perl

      집행 하 다.
mkdir -p /usr/local/smokeping/thirdparty
./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty

일반 DNS 가 해석 할 수 없 는 상황 이 8.8.8.8 테스트 로 바 뀔 수 있 습 니 다.상기 두 명령 이 성공 적 으로 실행 되 었 는 지,아니면 이 알림 이 있 었 다 면 PERL5LIB 라 는 환경 변수 설정 에 문제 가 있 었 을 것 입 니 다.
export  PERL5LIB=/usr/local/smokeping/thirdparty/lib/perl5

그리고 계속 수행 하 겠 습 니 다.
./configure --prefix=/usr/local/smokeping

완료 후 실행
gmake install

설치 완료 fping 명령 이 없 으 면 설치 해 야 합 니 다.
yum install fping
cd /usr/local/smokeping/etc

전면 설정
*** General ***

owner = NetWork
contact = [email protected]
mailhost = localhost
#sendmail = /usr/lib/sendmail
imgcache = /usr/local/smokeping/cache
imgurl = /cache
datadir = /usr/local/smokeping/data
piddir = /usr/local/smokeping/var
cgiurl = http://192.168.1.23:55555/smokeping
smokemail = /usr/local/smokeping/etc/smokemail.dist
tmail = /usr/local/smokeping/etc/tmail.dist
syslogfacility = local0

노드 설정
binary = /usr/sbin/fping

*** Slaves ***
secrets=/usr/local/smokeping/etc/smokeping_secrets.dist

+ bj
display_name=bj
color=ea0000

+ sh
display_name=sh
color=ff359a

+ sd
display_name=sd
color=ff00ff

+ gd
display_name=gd
color=0066cc

+ sc
display_name=sc
color=006000

+ hk
display_name=hk
color=00e3e3

첫 페이지 제목 과 소개
menu = Top
title =   SmokePing    
remark = “   ”

호스트 가입
+Enterprise
menu =   
title =   

++gd_Enterprise
menu =   
title =   

+++ 192168344
menu = 192.168.3.44
title = 192.168.3.44
#alerts = someloss
slaves = bj gd sc  //    
host = 192.168.3.44

+++ 192168345
menu = 192.168.3.45
title = 192.168.3.45
#alerts = someloss //  
slaves = bj gd sc  //    
host = 192.168.3.45

다음 과 같이 요약 한다.
+++ LocalNetwork
menu =   
title =   
host = /Enterprise/gd_Enterprise/192168344 /Enterprise/gd_Enterprise/192168345 //            

서버 가 노드 에서 직접 설치 한 후 다음 과 같이 시작 합 니 다.
mkdir /usr/local/smokeping/cache  mkdir /usr/local/smokeping/data
/usr/local/smokeping/bin/smokeping 
--master-url=http://192.168.1.23:55555/smokeping/smokeping.cgi 
--cache-dir=/usr/local/smokeping/cache/ 
--shared-secret=/usr/local/smokeping/etc/passwd --slave-name=bj 
--logfile=/usr/local/smokeping/slave.log

--master-url=/홈 서버 연결--shared-secret=/암호 파일 디 렉 터 리 는 기 존의 smokeping 을 사용 할 수 있 습 니 다.secrets.dist 또는 새 l 의 비밀 번 호 는 서비스 수준 과 같 아야 합 니 다.  권한 600 내용 은 비밀번호 123456 과 같 습 니 다.-slave-name  //노드 이름--logfile=  //로그 파일 주의 암호 파일 서버 에서 도 이 파일 을 작성 해 야 합 니 다 smokepingsecrets.dist 권한 도 600 형식 은 다음 과 같 습 니 다.노드 이름 위조 비밀번호 bj:123456 sc:234567 gd:345678
모든 설치 가 완료 되면 서버 쪽 을 다시 시작 하고 5 분 동안 노드 에 데이터 가 있 는 지 확인 합 니 다.클 라 이언 트 테스트 를 다시 시작 하지 않 으 면.일 지 를 보다

좋은 웹페이지 즐겨찾기