|
|
|
Category Category |
|
|
rrdtool ¼³Ä¡ |
|
# ¸®´ª½º/À¯´Ð½º 2007-02-27 22:32
|
|
|
ÀÌ»ó¿ë
|
|
|
|
|
- ÃÖÁ¾ ¼öÁ¤ÀÏ : 2006/12/31 -
-----------------------------------------------
1. °ü·Ã ÇÁ·Î±×·¥ ´Ù¿î·Îµå
-----------------------------------------------
(1) RRDTool ´Ù¿î·Îµå
1) http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/download.en.html
2) http://www.rootman.co.kr/NFS/Rrdtool/rrdtool-1.2.15.tar.tar
(2) HotSaNIC ´Ù¿î·Îµå
1) http://hotsanic.sourceforge.net/archive/
2) http://www.rootman.co.kr/NFS/Rrdtool/HotSaNIC.tgz
(3) ImageMagick
1) Redhat 7.3 System
http://www.rootman.co.kr/download/Lib/ImageMagic/7.3/
2) Redhat 9.x System
http://www.rootman.co.kr/download/Lib/ImageMagic/9.0/
3) Souce Install
ftp://ftp.imagemagick.org/pub/ImageMagick/linux/
-----------------------------------------------
2. RRDTool ¼³Ä¡
-----------------------------------------------
[root@rootman root] # tar zxvf rrdtool-1.0.49.tar.gz
[root@rootman root] # cd rrdtool-1.0.49
[root@rootman rrdtool-1.0.49]# ./configure --prefix=/usr/local/rrdtool && make; make install && make site-perl-install
-----------------------------------------------
3. HotSaNIC ¼³Ä¡
-----------------------------------------------
[root@rootman root]# tar xvfz HotSaNIC-0.4.0.tar
[root@rootman root]# mv HotSaNIC /usr/local/
[root@rootman root]# ./setup.pl
* setup.pl ½ºÅ©¸³Æ®´Â À¥»ó¿¡¼ º¸¿© ÁÙ ¸ð´ÏÅ͸µ ´ë»ó¿¡ ´ëÇØ Ã¼Å·ÇÑ´Ù.
°¡±ÞÀû worm°ú pingÀº Á¦¿ÜÇÏ´Â °ÍÀÌ ÁÁ½À´Ï´Ù.
Module found: SENSORS
Module found: DNET
Module found: PART
Module found: PING
Module found: TRAFFIC
Module found: NETWORKS
Module found: DISKIO
Module found: SYSTEM
Module found: WORMS
---------------------------------------
checking for OS-type (current: not configured)
OSTYPE="Linux"
checking path to "rrdtimer" (current: not configured)
DAEMONDIR="/usr/local/HotSaNIC"
checking path to "rrdtool" (current: not configured)
BINPATH="not configured"
LOGDIR="$DAEMONDIR/log/"
PIDFILE="$DAEMONDIR/log/rrdtimer.pid"
DIAGRAMLOG="last"
LOGSIZE="200000"
LOGBACKUPS="5"
DEBUGLEVEL="-1"
STIME="120"
RUN="sensors dnet part traffic networks diskio system"
WEBDIR="not configured"
WIDTH="600"
HEIGHT="200"
IMAGEFORMAT="gif"
SHOW="sensors dnet part traffic networks diskio system"
ORDER="traffic system part ping dnet sensors"
DTIME="15"
CTIME="24"
CONVERTMETHOD="ImgMgck"
checking path to "convert" from ImageMagick (current: not configured)
CONVERTPATH="not configured"
THUMBSIZE="20%"
REFRESH="300"
checking path to "snmpwalk" (current: not configured)
detected: /usr/bin/snmpwalk
is this corrrect? (y)y
SNMPWALK="/usr/bin/snmpwalk"
checking path to "snmpget" (current: not configured)
detected: /usr/bin/snmpget
is this corrrect? (y)y
SNMPGET="/usr/bin/snmpget"
Now adapt all settings files to satisfy your needs.
They are all linked to the directory ./settings.all .
[root@rootman HotSaNIC]# settings
* Àü¿ªÀûÀÎ ¸ð´ÏÅ͸µ ȯ°æ ¼³Á¤À» ÇÕ´Ï´Ù.
±âº»ÀûÀÎ °Íµé¸¸ ¼öÁ¤Çϵµ·Ï ÇÏ°Ú½À´Ï´Ù.
(1) settings ÆÄÀÏÀ» ¿¾î ȯ°æ¿¡ ¸Â°Ô Àç ÁöÁ¤ÇÑ´Ù.
1) HotSaNIC µð·ºÅ͸® À§Ä¡ ÁöÁ¤
DAEMONDIR="/usr/local/HotSaNIC"
2) rrdtool ½ÇÇà ÆÄÀÏ À§Ä¡ ÁöÁ¤
BINPATH="/usr/local/rrdtool/bin"
3) HotSaNICÀÇ ·Î±× µð·ºÅ͸® À§Ä¡ ÁöÁ¤
LOGDIR="$DAEMONDIR/log/"
4) convert ÆÄÀÏÀÇ À§Ä¡ ÁöÁ¤ (ImageMagicÀ» ¼³Ä¡¸¦ ÇؾßÇÔ)
CONVERTPATH="/usr/bin/convert"
5) ¸ð´ÏÅ͸µ ÆÄÀϵéÀÌ ½×ÀÌ´Â À§Ä¡ ÁöÁ¤
WEBDIR="/home2/rootman/rrdtool"
6) À̹ÌÁö ÀúÀå ÇüÅ ÁöÁ¤ (¿Ø¸¸Çϸé gif·Î ¼³Á¤)
IMAGEFORMAT="gif"
(2) ȯ°æ À§Ä¡ ¹× index »ý¼º, ½ÃÀÛ
1) rrdtool µ¥ÀÌÅÍ°¡ ½×ÀÏ À§Ä¡ ÁöÁ¤
[root@rootman HotSaNIC]# mkdir ~rootman/rrdtool
2) ·Î±× À§Ä¡ µð·ºÅ丮 »ý¼º
[root@rootman HotSaNIC]# mkdir -p /usr/local/HotSaNIC/var/log
3) index page »ý¼º
[root@rootman HotSaNIC]# ./makeindex.pl
reading & checking config (/usr/local/HotSaNIC/settings) ...
evaluating cmdline arguments...
1124963864: Building main index...
generating index-files for each plugin...
..........
..........
--- ATTENTION ---
In future please use "rrdtimer -i" to generate the index files.
this wrapper-script may vanish without further announcement.
4) µ¥¸ó ½ÃÀÛ
[root@rootman HotSaNIC]# /usr/local/HotSaNIC/rrdgraph start
Starting rrdtimer...
reading & checking config (/usr/local/HotSaNIC/settings) ...
evaluating cmdline arguments...
entering daemon mode...
-----------------------------------------------
4. rrdtool ÀÚµ¿ ºÎÆà ½Ã ÀÚµ¿ ½ÇÇà µÇµµ·Ï ¼³Á¤
-----------------------------------------------
[root@rootman root]# cat >> /etc/rc.d/rc.local
/usr/local/HotSaNIC/rrdgraph start
*************************************************************
* Âü°í »çÇ× *
*************************************************************
1. µ¥¸ó ½ÃÀÛ ¹× Á¤Áö
[root@rootman root]# cd /usr/local/HotSaNIC
[root@rootman HotSaNIC]# ./rrdgraph start // µ¥¸ó ½ÃÀÛ
[root@rootman HotSaNIC]# ./rrdgraph stop // µ¥¸ó Á¤Áö
2. À̹ÌÁö ±×·ÁÁö´Â ½Ã°£À» ÁÙÀÌÀÚ
[root@rootman root]# vi /usr/local/HotSaNIC/settings
DTIME="10"
* ºÐ ´ÜÀ§·Î ¼³Á¤À» Çϸç, ÀÌ ¼öÄ¡¿¡ µû¶ó CPUÀÇ ºÎÇÏ·®ÀÌ Áõ°¡µÉ ¼ö ÀÖ½À´Ï´Ù.
3. Ȥ½Ã ±×·¡ÇÁ°¡ º¸ÀÌÁö ¾Ê³ª¿ä?
µ¥¸óÀÌ ½ÃÀÛµÇ¸é ¸î ºÐ ÈÄ DB Á¤º¸¿¡ ÀÇÇØ ÆÄÀϵéÀÌ »ý¼ºÀÌ µË´Ï´Ù.
±× ¶§ °¢ µð·ºÅ͸®¿¡ ÀÖ´Â diagram ½ºÅ©¸³Æ®°¡ ½ÇÇàµÇ¸é¼ ±×·¡ÇÁ¸¦ ±×¸®°Ô µË´Ï´Ù.
settings¿¡ ¼³Á¤µÈ DTIME¿¡ ÀÇÇØ µ¥¸óÀÌ ÀÚµ¿À¸·Î ½ÇÇàÀ» ½Ãŵ´Ï´Ù.
¸¸ÀÏ, ¸ÞÀÎ index¿¡ ±×·¡ÇÁ°¡ º¸ÀÌÁö ¾Ê´Â´Ù¸é, "convert.pl" ¶Ç´Â "convert.sh"¸¦ ½ÇÇàÇϽʽÿÀ.
4. convert.pl ¶Ç´Â convert.sh¸¦ ½ÇÇà ½Ã llegal seek at ./convert.pl line 62 ¹ß»ý ½Ã
XFree86-libs-4.2.0-8.i386.rpm¸¦ ¼³Ä¡ÇØ ÁÝ´Ï´Ù.
libdpstk.so.1 ¸¦ ãÁö ¸øÇØ ¿¡·¯°¡ ¹ß»ýÇÏ´Â Çö»óÀÔ´Ï´Ù.
5. ³×Æ®¿öÅ©°¡ ¾È µÈ´Ù¸é..
iptables³ª ȤÀº ipchains°¡ ¼³Ä¡µÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù.
Kernel¿¡ Network Option¿¡ "packet filter"°¡ ¼³Ä¡µÇ¾î ÀÖ³ª È®ÀÎÇØ º¸½Ã±æ ¹Ù¶ø´Ï´Ù.
6. apps Á¤º¸¸¦ º¸°í ½Í³ª¿ä?
[root@rootman root]# vi /usr/local/HotSaNIC/modules/apps/settings // ¿ì¼± ÆÄÀÏÀ» ¿©½Ã°í
(1) ±âº» ¹®¹ý
# APP=,
(2) ±âº» ¿¹
APP=httpd,Apache
APP=mysqld,MysqlDB
APP=sendmail,Sendmail
....
[root@rootman root]# cd /usr/local/HotSaNIC/; ./makeindex.pl; ./rrdgraph stop; ./rrdgraph start
ÇÏ½Ã¸é µË´Ï´Ù.
7. apps Á¤º¸¸¦ º¸°í ½Í³ª¿ä?
[root@rootman root]# vi /usr/local/HotSaNIC/modules/diskio/settings // ¿ì¼± ÆÄÀÏÀ» ¿©½Ã°í
(1) ±âº» ¹®¹ý
1) KERNEL="2.2"
Ä¿³Î 2.1, 2.2 ¹öÀüÀº 2.4À¸·Î ¼¼ÆÃ
2) KERNEL="2.4"
Ä¿³Î 2.3.x, 2.4.x ¹öÀüÀº 2.4À¸·Î ¼¼ÆÃ
3) ¹®¹ý
# DEV=,
*) device
# Ä¿³Î 2.3.x ÀÌ»óÀÇ °æ¿ì
# DEV=8_0,sda
# DEV=8_1,sdb
....
# DEV=3_0,hda
# DEV=22_0,hdc
[root@rootman root]# cd /usr/local/HotSaNIC/; ./makeindex.pl; ./rrdgraph stop; ./rrdgraph start
ÇÏ½Ã¸é µË´Ï´Ù.
8. ScreenShot
http://www.rootman.co.kr/rrdtool/ | |
|
|
|
|
|
|
|
|
|
Copyright 1999-2024 Zeroboard / skin by eggnara
|
|