mrtgのインストールとコンフィグファイルの作成
$ sudo yum install mrtg ... $ cfgmaker public@localhost > mrtg.cfg
rrdtoolのインストールと組み込み
$ sudo yum install rrdtool ... $ mrtg mrtg.cfg ----------------------------------------------------------------------- ERROR: Mrtg will most likely not work properly when the environment variable LANG is set to UTF-8. Please run mrtg in an environment where this is not the case. Try the following command to start: env LANG=C /usr/bin/mrtg mrtg.cfg ----------------------------------------------------------------------- $ env LANG=C mrtg mrtg.cfg Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2665. Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2665. Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2683. Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2683. Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2699. Use of uninitialized value $dir in concatenation (.) or string at /usr/bin/mrtg line 2699. ERROR: "WorkDir" not specified in mrtg config file $ vi mrtg.cfg ... WorkDir: <rrdファイルを保存するディレクトリ> LogFormat: rrdtool PathAdd: <rrdtoolコマンドがあるディレクトリ> LibAdd: <RRDs.pmがあるディレクトリ> ... $ env LANG=C mrtg mrtg.cfg $ ls -lt 合計 120 -rw-rw-r--. 1 tigerii tigerii 0 3月 15 23:41 mrtg.ok -rw-rw-r--. 1 tigerii tigerii 105164 3月 15 23:41 localhost_2.rrd ...
参照したURL:
http://www.mrtg.jp/doc/mrtg-rrd.html