http://oss.oetiker.ch/smokeping/
yumでインストール
- 準備
rpmforgeを使えるようにしておく
- 必要なパッケージ
yum install mod_fcgid httpd httpd-devel rrdtool fping wget curl bind-utils gcc make
- perlのモジュール
yum 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-RRD-Simple perl-CGI-SpeedCGI perl-ExtUtils-MakeMaker
- 追加
yum install perl-CGI-SpeedyCGI perl-CGI-SpeedCGI
- apacheの設定
chkconfig httpd on
/etc/httpd/conf.d/smokeping.conf
<Directory "/var/www/html/smokeping">
Options +ExecCGI
AllowOverride all
order deny,allow
deny from all
allow from アクセスを許可するIP
</Directory>
service httpd start
- smokepingのインストール
wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.8.tar.gz
tar -zxvf smokeping-2.6.8.tar.gz -C /opt/
mkdir /opt/smokeping
cd /opt/smokeping-2.6.8/setup
./build-perl-modules.sh
cp -r ../thirdparty /opt/smokeping/
cd ..
./configure –prefix=/opt/smokeping
make
make install
- SmokePing用ディレクトリ作成
cd /opt/smokeping
mkdir data
mkdir var
- initスクリプトのダウンロード
wget http://static.wedebugyou.com/smokeping_start_stop.txt
mv smokeping_start_stop.txt /etc/init.d/smokeping
chmod 755 /etc/init.d/smokeping
- configの作成
cd /opt/smokeping/etc/
for foo in *.dist; do cp $foo `basename $foo .dist`; done
chmod 600 /opt/smokeping/etc/smokeping_secrets.dist
/opt/smokeping/etc/config
監視対象を追記する
+ Ping
menu = 名前
title = SmokePingで監視
++ test-server1
menu = test-server1
title = test-server1
host = 192.168.1.1
++ test-switch1
menu = test-switch1
title = test-switch1
host = 192.168.101.1
- SmokePingをapacheから見れるように、の設定
cp -r /opt/smokeping/htdocs/cropper /var/www/cgi-bin/
cp /opt/smokeping/htdocs/smokeping.fcgi.dist /var/www/cgi-bin/smokeping.fcgi
cd /var/www/html/
mkdir cache
chown apache cache
ln -s /var/www/html/cache /opt/smokeping/cache
- smokepingスタート
service httpd restart
service smokeping start
- アクセスして確認
http:///serveraddress/smokeping/
0 件のコメント:
コメントを投稿