Vine Linux - MRTG でマシンの状態をグラフ化

Vine Linux を使ってサーバ構築・運営していくためのノウハウをまとめてみました。
Vine Linux - MRTG でマシンの状態をグラフ化
  
line

Vine Linux - MRTG でマシンの状態をグラフ化

Saturday, Aug, 27, 2005
line

MRTGを使うと、マシンの状態やトラフィックをグラフで視覚的にわかりやすいように出力してくれます。
Vine Linuxでは MRTG 本体もそれを使用するためのライブラリもインストールされていないのでインストールします。

[ zlib ]

# wget http://www.zlib.net/zlib-1.2.3.tar.gz
--14:24:02-- http://www.zlib.net/zlib-1.2.3.tar.gz
=> `zlib-1.2.3.tar.gz'
www.zlib.net をDNSに問いあわせています... 69.73.159.132
www.zlib.net[69.73.159.132]:80 に接続しています... 接続しました。
HTTP による接続要求を送信しました、応答を待っています... 200 OK
長さ: 496,597 [application/x-tar]

100%[=================>] 496,597 153.56K/s ETA 00:00

14:24:06 (153.14 KB/s) - `zlib-1.2.3.tar.gz' を保存しました [496597/496597]

[ libpng ]
# tar fvxz libpng-1.2.8-config.tar.gz
# cd libpng-1.2.8-config
# cp ./scripts/makefile.linux ./makefile
# make test
gcc -I../zlib -Wall -O3 -funroll-loops -c -o pngtest.o pngtest.c
pngtest.c:31 から include されたファイル中:
png.h:359:18: zlib.h: そのようなファイルやディレクトリはありません
In file included from png.h:363,
from pngtest.c:31:
pngconf.h:1175: error: 文法エラー before '*' token
pngconf.h:1175: 警告: type defaults to `int' in declaration of `png_zcharp'
pngconf.h:1175: 警告: data definition has no type or storage class
pngconf.h:1176: error: 文法エラー before '*' token
pngconf.h:1176: 警告: type defaults to `int' in declaration of `png_zcharpp'
pngconf.h:1176: 警告: data definition has no type or storage class
pngconf.h:1177: error: 文法エラー before '*' token
pngconf.h:1177: 警告: type defaults to `int' in declaration of `png_zstreamp'
pngconf.h:1177: 警告: data definition has no type or storage class
In file included from pngtest.c:31:
png.h:1107: error: 文法エラー before "z_stream"
png.h:1107: 警告: struct や union の最後にセミコロンがありません
png.h:1353: error: 文法エラー before '}' token
pngtest.c: 関数 `test_one_file' 内:
pngtest.c:695: error: dereferencing pointer to incomplete type
pngtest.c:719: error: dereferencing pointer to incomplete type
pngtest.c:1260: error: `ZLIB_VERSION' undeclared (first use in this function)
pngtest.c:1260: error: (Each undeclared identifier is reported only once
pngtest.c:1260: error: for each function it appears in.)
pngtest.c: 関数 `main' 内:
pngtest.c:1314: error: `ZLIB_VERSION' undeclared (first use in this function)
pngtest.c:1323: error: invalid application of `sizeof' to an incomplete type
make: *** [pngtest.o] エラー 1

投稿者 campanella : 2005年08月27日 12:40 | Linux Tips | 編集
line
□□□ トラックバック □□□

このエントリーのトラックバックURL:

□□□ コメント □□□

line
名前
メールアドレス
URL
コメント
 
 
  kado