MRTGには予め付属のindexmakerというツールがある、これを使えば簡単にできてしまう。
indexmaker コマンドのパラメータに、mrtg.cfg と URLを下記の通り入力。
# indexmaker /etc/mrtg/mrtg.cfg > /home/user/public_html/mrtg/index.html
これだけで、index.htmlが作成される。ただ、文字コードがデフォルトで iso-8859-15 になっているので、これだけは手動で修正する必要がある。
# vi /home/user/public_html/mrtg/index.html
euc-jpに修正できたら、http://[SeverIP]/mrtg/ を開く。
