LoginSignup
5
3

More than 3 years have passed since last update.

SmokePingでネットワーク遅延を可視化する

Last updated at Posted at 2018-04-16

SmokePingとは

  • ネットワーク遅延をグラフで可視化するツール
  • Webサーバ上で動作し、Webブラウザで確認する

ゴール

DebianにSmokePingをインストールし、Webブラウザでネットワーク遅延データのグラフを確認する

導入準備

必ずインストールするパッケージ

  • RRDtoolのインストール
    条件:1.2.x or later # apt install rrdtool librrds-perl

note: このコマンドを入力すると環境によっては、
「CD必要」のエラーがでる。解決策は/etc/apt/sources.listの
# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1 20180310-11:21]/ stretch contrib main
をコメントアウトする。注)もちろん設定ファイルの編集前にcpで必ずバックアップをとろう

  • Webserver(今回はapache2)のインストール
    # apt install apache2
    • CGI、FastCGIを有効化する
      # a2enmod cgi (Debianではデフォルトで有効化されている)
    • Apacheの起動
      # systemctl start apache2

note:
aptコマンドでApacheをインストールした後、/etc/apache2/apache2.confを確認してみよう。
また、# apachectl -MでApacheのモジュールを確認できる

note:
CGIの無効化は
a2dismod cgi

  • Perl
    Perl 5.10.1 or later DebianではPerlはデフォルトでインストールされています。

オプションでインストールするパッケージ

  • FPing
    # apt install fping

  • EchoPing

  • Curl

  • dig

  • SSH

SmokePingのインストール

# apt install smokeping
- SmokePingデーモンの起動
# systemctl start smoke
- この時点で一度http://自分のアドレス/smokeping/smokeping.cgiへアクセスし、
Webブラウザで起動の確認をする

設定ファイルの編集

  • /etc/smokeping/config

Webブラウザでネットワーク遅延のグラフの確認

参考資料

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3