SmokePing とは
SmokePing は、ネットワーク遅延を測定し記録可能なツールです。具体的な特徴は以下のとおりです。
- Best of breed latency visualisation.
- Interactive graph explorer.
- Wide range of latency measurment plugins.
- Master/Slave System for distributed measurement.
- Highly configurable alerting system.
- Live Latency Charts with the most 'interesting' graphs.
- Free and OpenSource Software written in Perl written by Tobi Oetiker, the creator of MRTG and RRDtool.
SmokePing のインストール
以下、Scientific linux 6 x64 へインストールする際の手順になります。
epel リポジトリをインストールします。
># yum install epel-release
依存パッケージをインストールします。
># yum install fping rrdtool rrdtool-perl \ perl-Convert-BER perl-CGI perl-CGI-Session \ perl-Net-Telnet perl-SNMP_Session perl-LDAP
># wget http://www.maruko2.com/download/ perl-Config-Grammar-1.10-3.el6.noarch.rpm ># wget http://www.maruko2.com/download/ perl-qooxdoo-compat-0.7.3-4.el6.noarch.rpm
># yum install perl-JSON ># yum install perl-Net-DNS ># yum install perl-Time-HiRes
># rpm -ihv perl-Config-Grammar-1.10-3.el6.noarch.rpm ># rpm -ihv perl-qooxdoo-compat-0.7.3-4.el6.noarch.rpm
SmokePing をダウンロード及びインストールします。
(通常、ソースパッケージ(SRPM)をリビルドし、バイナリパッケージ(RPM)を作成する必要がありますが、こちらで作成済みのものを利用させて頂きました。)
># wget http://www.maruko2.com/download/ smokeping-2.4.2-10.el6.noarch.rpm ># rpm -ihv smokeping-2.4.2-10.el6.noarch.rpm
SmokePing の設定
SmokePing の基本設定を行います。
># vi /etc/httpd/conf.d/smokeping.conf <Directory "/usr/share/smokeping" > Order deny,allow Deny from all Allow from all <--- add network </Directory> <Directory "/var/lib/smokeping" > Order deny,allow Deny from all Allow from all <--- add network </Directory>
SmokePing の監視設定を行います。
+ Ping menu = SEILx86 Lab <---name title = L2TPv3 over IPsec <---title ++ LocalPing menu = to Kobe <---name title = 192.168.100.101 <---title host = 192.168.100.101 <---object ++ RemotePing menu = to Osaka title = 192.168.100.102 host = 192.168.100.102
サービスの起動及び起動設定を行います。
># ln -s /usr/lib/mrtg2/* /usr/share/smokeping/lib
># chkconfig httpd on ># chkconfig smokeping on ># service httpd start ># service smokeping start
以下の URL から SmokePing の管理画面へアクセスします。
http://ServerIP/smokeping/sm.cgi
以下、SEIL/x86 による疑似 VPN 環境の Kobe_LAN で SmokePing を実行した例になります。
参考:
簡単!CentOSでsmokeping
SmokePingのインストール
以上