SAGにはインストーラが付属しており、通常のインストールは、このインストーラにより行うことができます。
インストールはroot権限で行います。
インストーラをダウンロードします。
sag-demo# ftp https://raw.githubusercontent.com/ykaw/sag/master/install.sh Trying 185.199.111.133... Requesting https://raw.githubusercontent.com/ykaw/sag/master/install.sh 100% |**************************************************| 4511 00:00 ETA 4511 bytes received in 0.00 seconds (1.17 MB/s) #
ダウンロードが完了したら、インストーラを実行します。
sag-demo# sh ./install.sh
gitとgnuplotがインストールされます。
## Installing dependencies from package quirks-6.121(signed) 2023-06-16T09:53:28Z quirks-6.121: ok git-2.40.0:cvsps-2.1p2: ok 〜略〜 git-2.40.0:ok gnuplot-5.2.7p1:bzip2-1.0.8p0: ok 〜略〜 gnuplot-5.2.7p1:pcre2-10.37p1: ok gnuplot-5.2.7p1: ok Running tags: ok The following new rcscripts were installed: /etc/rc.d/gitdaemon See rcctl(8) for details. New and changed readme(s): /usr/local/share/doc/pkg-readmes/git /usr/local/share/doc/pkg-readmes/glib2
sagアカウントが作成されます。
## Creating SAG account: user=sag, group=sag, home=/home/sag
sagがダウンロードされます。
## Retrieving SAG source from the repository Cloning into 'sag'... remote: Enumerating objects: 542, done. remote: Counting objects: 100% (119/119), done. remote: Compressing objects: 100% (65/65), done. Receiving objects: 100% (542/542), 384.74 KiB | 374.00 KiB/s, done. Resolving deltas: 100% (242/242), done. remote: Total 542 (delta 53), reused 89 (delta 42), pack-reused 423K
ディスクパーティションのプロットを指定するファイルdfplot.gpを編集するためにテキストエディタが起動されます。デフォルトでよければ編集を行わずにエディタを終了して下さい。
## Edit dfplot.gp - specify disk partitions to plot, if necessary.
ネットワークインターフェースを指定するファイルnetcmd.shを編集するためにテキストエディタが起動されます。デフォルトでよければ編集を行わずにエディタを終了して下さい。
## Edit netcmd.sh - specify the network interface to plot.
取得データの保持日数と各測定項目のグラフ表示期間を指定するファイルnetcmd.shを編集するためにテキストエディタが起動されます。デフォルトでよければ編集を行わずにエディタを終了して下さい。
## Edit shconf.sh - specify spans to archive logs and plot graphs.
各種設定が自動で行われます。
## Preparing stuffs to aggregate and plot data ## Setting up root's crontab ## Setting up the startup file ## Setting up sag's crontab ## Setting up web-related stuffs
グラフの画像ファイルをウェブのドキュメントルート配下にコピーするためのファイルgpostproc.shを編集するためにテキストエディタが起動されます。グラフをウェブで閲覧する場合はファイル内のコメントに従って編集して下さい。
## Edit a script to copy graphs to Web. if not needed, leave this untouched.
以上で終りです。
グラフをウェブで閲覧する場合はhttpd.confの編集など、関連する設定を行って下さい。
## All done. ## ## You need to add the entry on your httpd.conf(8) file. ## sag-demo#