2008년 10월 27일 월요일

MRTG

MRTG 설치 및 활용하기

1. zlib :그래픽 파일을 압축
homepage :
http://www.zlib.net/

# wget http://www.zlib.net/zlib-1.2.3.tar.gz
# tar xvzf zlib-1.2.3.tar.gz

2. libpng : zlib로 압축한 그래픽 파일을 PNG로 변경
homepage :
http://www.libpng.org/pub/png/libpng.html


 

# wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.16.tar.gz

# tar xvzf libpng-1.2.16.tar.gz

3 . jpeg :
homepage : http://www.ijg.org

# wget
http://www.ijg.org/files/jpegsrc.v6b.tar.gz

# tar xvzf jpegsrc.v6b.tar

4. gd : jpeg, png, gif 등의 라이브러리
homepage :
http://www.libgd.org/


# wget http://www.libgd.org/releases/gd-2.0.34.tar.gz
# tar xvzf gd-2.0.34.tar.gz

5. MRTG
homepage : http://oss.oetiker.ch/mrtg/

# wget http://oss.oetiker.ch/mrtg/pub/mrtg-2.15.1.tar.gz
# tar xvzf mrtg-2.15.1.tar.gz


5.1 cfg파일 생성

cfgmaker
명령어를 이용하여 cfg파일을 생성

# /usr/local/mrtg/bin/cfgmaker --global 'WorkDir: /usr/local/apache/htdocs/mrtg' \

> --global 'Options[_]: bits,growright' --output /usr/local/mrtg/cfg/mrtg.cfg \

> community@ip주소

workdir :
수집한 자료값이 저장될 디렉토리

option : 여러 설정 옵션

  - bits : 기본 단위

  - growright : 새로운 데이터가 오른쪽에 생성

output : cfg 파일이 저장될 디렉토리



5.2 MRTG실행

#/usr/local/mrtg/bin/mrtg  /usr/local/mrtg/cfg/mrtg.cfg
(
처음 실행하면 warning 메시지가 뜨는데 이는 log값이 처음으로 생성이 되어 비교할 값이

없어서 나타나는 메시지이다. 이 명령을 3 실행하면 같은 warning 메시지는 나타나지

않는다.)



5.3 5분마다 mrtg 실행하기

# crontab -e 옵션을 사용해서
*/5 * * * *
 
/usr/local/mrtg/bin/mrtg  usr/local/mrtg/cfg/mrtg.cfg


5.4 index 파일 만들기

# /usr/local/mrtg/bin/indexmaker /usr/local/mrtg/cfg/mrtg.cfg \

> --output /usr/local/apache/htdocs/mrtg/index.html

 

 

 

=============================================>

이렇게 다 해도 freebsd의 포트 설치는 막당하다.

 

cd /usr/ports/*/mrtg

make install clean

 

cd /usr/ports/*/net-snmp

make install clean

 

끝..위에 설정만 조금 따라하자.

phpmyadmin config.inc.php

<?php
/* $FreeBSD: ports/databases/phpmyadmin/files/config.inc.php.sample,v 1.3 2006/05/16 06:43:23 clsung Exp $
 *
 * Skeleton configuration file -- this file is empty on a fresh
 * installaton of phpmyadmin.
 *
 * Copy any settings you want to override from
 * libraries/config.default.php or use scripts/setup.php to generate a
 * basic configuration file
 *
 */

/* Servers configuration */
$i = 0;

/* Server localhost (cookie) [1] */
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'cookie';

/* End of servers configuration */

$cfg['blowfish_secret'] = 'dklfjkldsjfwiejfmiyus.dfn.jjiggusd.,fjsdlh.';
//$cfg['ForceSSL'] = true;
$cfg['ShowPhpInfo'] = false;
$cfg['ShowChgPassword'] = true;
//$cfg['AllowArbitraryServer'] = true;
//$cfg['LoginCookieRecall'] = 'something';
$cfg['LoginCookieValidity'] = 1800;
//$cfg['AllowAnywhereRecoding'] = false;
$cfg['DefaultCharset'] = 'utf-8';
//$cfg['RecodingEngine'] = 'auto';
//$cfg['IconvExtraParams'] = '//TRANSLIT';
//$cfg['GD2Available'] = 'yes';
//$cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman';
//$cfg['MySQLManualType'] = 'viewable';

?>

2008년 10월 13일 월요일

iSCSI 넌 뭐냐.?

Windows 2003 Server에서 유독 Driver가 잡히지 않던 녀석..

 

Broadcom netXtreme II C-NIC iSCSI Adapter

 

Dell PE1950 을 깔면서 골머리 썩혔던..녀석.

 

DELL에 전화했다. 돌아온 답변.

 

MS사이트에서 iSCSI initiator 를 다운 받아서 설치하세요...

 

근데..쓸일 없으면 걍 안깔아도 됩니다..

 

용도는 SCSI 패킷을 TCP/IP에 실어서 보내는 거라고...

 

...난 ..쓸일 없지만 깔았다 !!!

 

-_-;; DELL 서버 열어서 TOE_KEY 라는거 뽑아도 되고..

 

랜카드 메니져 프로그램 깔아서

disable 시켜도 된다..

아니면 HotFIX를 깔든가!!!! 뷁.

2008년 10월 8일 수요일

윈도우 터미널 서비스 콘솔 접속.

터미널에 접속한 사람 없는데 접속초과가 뜬다?!

 

그럼 콘솔로 접속해서 끊어주자 -0-

 

시작->실행->cmd 엔터

mstsc /v:192.168.10.11(서버주소) /console

 

하면..콘솔 접속이 가능해진다~~~ 캬~

 

그리고

 

Ctrl + Shift + ESC (그래봐야 윈도 관리자 Ctrl + Alt + Del과 같다)

 

사용자로 가서..

사람 그림에 색깔다른거(본인) 빼고 끊어주는 센스!

2008년 10월 4일 토요일

아이팟 터치 공장초기화

1. 아이튠즈가 설치되있는 컴퓨터에 연결
2. 터치 전원 ON
3. 슬립버튼+홈버튼 동시에 누름 (꺼지고 다시 하얀사과 뜰때까지)
4. 하얀사과가 뜨자마자 슬립버튼은 떼고 홈버튼은 그대로 누르고 있는다
5. 아이튠즈에서 복원하라는 메시지가 뜬다
6. 복원한다
7. 공장출하상태로 초기화됨