운영 도구 의 smokeping 배치
1. 다른 소스 설치
rpm -Uvh http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
2. rrdtool 과 의존 라 이브 러 리 설치
yum -y install perl perl-Net-Telnet perl-Net-DNS perl-LDAP perl-libwww-perl perl-RadiusPerl perl-IO-Socket-SSL perl-Socket6 perl-CGI-SpeedyCGI perl-FCGI perl-CGI-SpeedCGI perl-Time-HiRes perl-ExtUtils-MakeMaker perl-RRD-Simple rrdtool rrdtool-perl curl fping echoping httpd httpd-devel gcc make wget libxml2-devel libpng-devel glib pango pango-devel freetype freetype-devel fontconfig cairo cairo-devel libart_lgpl libart_lgpl-devel mod_fastcgi
3. smokeping 다운로드 및 설치
wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.8.tar.gz
tar zxvf smokeping-2.6.8.tar.gz
cd smokeping-2.6.8
./configure --prefix=/usr/local/smokeping
perl ,
./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty
./configure --prefix=/usr/local/smokeping
/usr/bin/gmake install
,smokeping 。
4. smokeping 설정
4.1 cache, data, var 디 렉 터 리 생 성
cd /usr/local/smokepingmkdir cache data var
4.2. 로그 만 들 기
touch /var/log/smokeping.log
4.3 권한 부여
chown apache:apache cache data varchown apache:apache /var/log/smokeping.log
4.4. 프로필 수정
cd /usr/local/smokeping/htdocs/
mv smokeping.fcgi.dist smokeping.fcgi
cd /usr/local/smokeping/etc
mv config.dist config
vim config
cgiurl = http://some.url/smokeping.cgi( some.url ip )
*** Database ***
step = 300 ( , step, 300 60)
4.5. 설정 완료 후 암호 파일 권한 수정
chmod600 /usr/local/smokeping/etc/smokeping_secrets.dist
4.6. apache 설정 수정
vim /etc/httpd/conf/httpd.conf
다음 과 같이 추가
Alias /cache "/usr/local/smokeping/cache/"
Alias /cropper "/usr/local/smokeping/htdocs/cropper/"
Alias /smokeping "/usr/local/smokeping/htdocs/smokeping.fcgi"AllowOverride None
Options All
AddHandler cgi-script .fcgi .cgi
Order allow,deny
Allow from all
DirectoryIndex smokeping.fcgi
f. 시동 설정
echo "/usr/local/smokeping/bin/smokeping --logfile=/var/log/smokeping.log 2>&1 &" >> /etc/rc.local
g. http 와 smokeping 시작
/etc/init.d/httpd start/usr/local/smokeping/bin/smokeping --logfile=/var/log/smokeping.log 2>&1 &
500 , selinux , 。
5. : 。
/etc/httpd/conf/httpd.con
AllowOverride None
Options All
AddHandler cgi-script .fcgi .cgi
AllowOverride AuthConfigOrder allow,deny
Allow from allAuthName "Smokeping"AuthType Basic
AuthUserFile /usr/local/smokeping/htdocs/htpasswd
Require valid-userDirectoryIndex smokeping.fcgi
httpd.conf
cd /usr/local/smokeping/htdocs ,
htpasswd -c /usr/local/smokeping/htdocs/htpasswd admin
httpd 。
6.
6.1 ,
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate 210.72.145.44。
6.2
, /usr/local/smokeping/etc config
*** Presentation ***
charset = utf-8
menu titile ,
7.
, 。
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
셸 입문 부터 정통 한 for 순환 및 6 가지 난수 생 성 법순환 용 1. [문법 구조] 2. 문법 linux 에서 무 작위 수 를 만 드 는 여섯 가지 방법 방법 1: 방법 2: openssl 을 통 해 난수 생 성 방법 3: date 시간 을 통 해 얻 을 수 있 습 니 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.