27 Mar. 1998 Made By K.Kondo Internet Initiative Japan Inc. MRTG用データ出力ツール mrtgout.pl 1. 概要 BGPVIEWで取得したメッセージログをもとにMRTGでグラフ化するためのデータ を出力するツールです。 2. 準備 1. MRTGをインストールします。 2. mrtgout.plのperlコマンド指定行、および、ログファイルディレクトリを 適当なものに変更します。 3. 利用方法 mrtgout.pl [filename] [number of line] [function] filename : メッセージログのファイル名を指定します。 number of line: 指定ファイルの最後から何回分のデータを有効にするか指 定します。尚、指定の回数のデータが取れていない場合に は、存在する最大のデータ個数で行われます。 function : "ROUTE"しかありません。 第一要素 : Prefixの合計 第二要素 : Withdrawの合計 第三要素 : 無し 第四要素 : データの最終日時 4. MRTGへの設定 mrtg.cfgのTARGET情報として以下の様に指定します。 --- Target[router]: `mrtgout.pl router.info 5 ROUTE` --- こうすることにより、MRTG起動と同時にmrtgout.plが起動され、必要な情報が MRTGに渡されることになります。 あとは、MRTGの各種設定によって見やすく指定して下さい。 例えば、 Target[router]: `mrtgout.pl router.info 5 ROUTE` MaxBytes[router]: 10000 Title[router]: router : HTTP Options[router]: absolute, bits, noinfo, nopercent, growright Legend1[router]: The Number of Prefix Legend2[router]: The Number of Withdraw YLegend[ezwf]: Message per 5 minuite ShortLegend[ezwf]: Msg/5min PageTop[router]:

Router Receiving Prefix & Withdraw

System:router
Maintainer:kuniaki@iij.ad.jp
Type:the number of prefix and withdraw
というのはいかがでしょうか? 但し、mrtgout.plのパスは指定したほうがよいでしょう。 5.Distribution Policy All files in the package includes folowing description. # # Copyright (c) 1998 Internet Initiative Japan Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistribution with functional modification must include # prominent notice stating how and when and by whom it is # modified. # 3. Redistributions in binary form have to be along with the source # code or documentation which include above copyright notice, this # list of conditions and the following disclaimer. # 4. All commercial advertising materials mentioning features or use # of this software must display the following acknowledgement: # This product includes software developed by Internet # Initiative Japan Inc. # # THIS SOFTWARE IS PROVIDED BY ``AS IS'' AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE # DISCLAIMED. # As described in the notice, redistribution is allowed for any purpose including commercial product as long as satisfying above conditions. Redistribution with modification is not prohibited but we encourage everybody to share the improvement for public. We are happy to integrate contributions in original release. If you still want to distribute your own 以上