Tip 분류

WD My Book Live에 쓸만한 모니터링 툴 설치 및 활용 방법

컨텐츠 정보

  • 27,728 조회
  • 10 댓글
  • 0 추천
  • 목록

본문

vega123님이 알려주셔서 업데이트 합니다.



1. 패키지 리스트 업데이트


aptitude update


위 명령어로 업데이트 합니다.



MyBookLive:~# aptitude update

Get:1 http://ftp.us.debian.org squeeze Release.gpg [1672B]

Get:2 http://ftp.us.debian.org wheezy Release.gpg [1672B]

Get:3 http://ftp.us.debian.org squeeze Release [99.8kB]

Ign http://ftp.us.debian.org squeeze Release

Get:4 http://ftp.us.debian.org wheezy Release [168kB]

Ign http://ftp.us.debian.org wheezy Release

Get:5 http://ftp.us.debian.org squeeze/main Packages [6490kB]

Get:6 http://ftp.us.debian.org wheezy/main Packages [5749kB]

Fetched 12.5MB in 4min10s (49.8kB/s)

Reading package lists... Done

W: GPG error: http://ftp.us.debian.org squeeze Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY AED4B06F473041FA NO_PUBKEY 64481591B98321F9

W: GPG error: http://ftp.us.debian.org wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 6FB2A1C265FFB764

W: You may want to run apt-get update to correct these problems


Current status: 308 updates [+308], 39455 new [+39455].

MyBookLive:~#


위와 같은 화면이 나오면 패키지 리스트 업데이트가 완료되었습니다.


이제 밑의 패키지들을 설치할 수 있습니다.



2. HTOP 설치


먼저 소개해드릴 것은 CPU와 메모리 모니터링 툴인 htop입니다.


기본적으로 top이라는 패키지가 있지만, 보기에도 불편하고 


마우스 클릭도 잘 안됩니다.



Putty에 접속해서


aptitude install htop


처음에 물어보면 y 엔터


두번째 물어보면 yes 엔터



MyBookLive:~# aptitude install htop

Reading package lists... Done

Building dependency tree

Reading state information... Done

Reading extended state information

Initializing package states... Done

Reading task descriptions... Done

The following NEW packages will be installed:

  htop libtinfo5{a}

0 packages upgraded, 2 newly installed, 0 to remove and 308 not upgraded.

Need to get 344kB of archives. After unpacking 663kB will be used.

Do you want to continue? [Y/n/?] y

WARNING: untrusted versions of the following packages will be installed!


Untrusted packages could compromise your system's security.

You should only proceed with the installation if you are certain that

this is what you want to do.


  libtinfo5 htop


Do you want to ignore this warning and proceed anyway?

To continue, enter "Yes"; to abort, enter "No": yes

Writing extended state information... Done

Get:1 http://ftp.us.debian.org wheezy/main libtinfo5 5.9-10 [272kB]

Get:2 http://ftp.us.debian.org wheezy/main htop 1.0.1-1 [72.1kB]

Fetched 344kB in 5s (64.1kB/s)

Selecting previously deselected package libtinfo5.

(Reading database ...

dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.


dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently installed.

(Reading database ... 18717 files and directories currently installed.)

Unpacking libtinfo5 (from .../libtinfo5_5.9-10_powerpc.deb) ...

Replacing files in old package libncurses5 ...

Selecting previously deselected package htop.

Unpacking htop (from .../htop_1.0.1-1_powerpc.deb) ...

Processing triggers for man-db ...

Setting up libtinfo5 (5.9-10) ...

Setting up htop (1.0.1-1) ...

Reading package lists... Done

Building dependency tree

Reading state information... Done

Reading extended state information

Initializing package states... Done

Writing extended state information... Done

Reading task descriptions... Done


MyBookLive:~#



위와 같이 설치과정이 진행되면 성공입니다.



실행은 그냥 Putty에서 


htop


을 치면 됩니다.






위에 스샷처럼 CPU, MEM을 마우스 클릭하면 내림차순으로 정렬됩니다.


어떤 프로세스가 얼마만큼의 자원을 먹는지 볼 수 있습니다.



빠져나오는 방법은 그냥 q를 누르면 됩니다. 대문자Q는 안되니 당황하지 마시구요.





3. IFTOP 설치


두번째로 소개해드릴 패키지는 iftop입니다.


어떤 아이피와 얼마나 데이터 소통을 하는지 볼 수 있습니다.



aptitude install iftop


위 명령어로 설치합니다.


처음에 물어보면 y 엔터


두번째 물어보면 yes 엔터


MyBookLive:~# aptitude install iftop

Reading package lists... Done

Building dependency tree

Reading state information... Done

Reading extended state information

Initializing package states... Done

Reading task descriptions... Done

The following NEW packages will be installed:

  iftop libpcap0.8{a}

0 packages upgraded, 2 newly installed, 0 to remove and 308 not upgraded.

Need to get 181kB of archives. After unpacking 424kB will be used.

Do you want to continue? [Y/n/?] y

WARNING: untrusted versions of the following packages will be installed!


Untrusted packages could compromise your system's security.

You should only proceed with the installation if you are certain that

this is what you want to do.


  iftop libpcap0.8


Do you want to ignore this warning and proceed anyway?

To continue, enter "Yes"; to abort, enter "No": yes

Writing extended state information... Done

Get:1 http://ftp.us.debian.org wheezy/main libpcap0.8 1.3.0-1 [138kB]

Get:2 http://ftp.us.debian.org wheezy/main iftop 1.0~pre2-3 [42.4kB]

Fetched 181kB in 2s (80.1kB/s)

Selecting previously deselected package libpcap0.8.

(Reading database ...

dpkg: warning: files list file for package `ramlog' missing, assuming package has no files currently installed.


dpkg: warning: files list file for package `libparted0' missing, assuming package has no files currently installed.

(Reading database ... 18737 files and directories currently installed.)

Unpacking libpcap0.8 (from .../libpcap0.8_1.3.0-1_powerpc.deb) ...

Selecting previously deselected package iftop.

Unpacking iftop (from .../iftop_1.0~pre2-3_powerpc.deb) ...

Processing triggers for man-db ...

Setting up libpcap0.8 (1.3.0-1) ...

Setting up iftop (1.0~pre2-3) ...

Reading package lists... Done

Building dependency tree

Reading state information... Done

Reading extended state information

Initializing package states... Done

Writing extended state information... Done

Reading task descriptions... Done


MyBookLive:~#



위와 같이 설치과정이 진행되면 성공입니다.



실행 방법은 Putty에서 그냥 


iftop


을 치면 실행됩니다.


이것도 빠져나오는 방법이 소문자 q입니다. 대문자는 안됩니다.



보는 방법은 '==>' 표시가 데이터 흐름입니다.


예를 들어 MyBookLive  ==>  Woosung-PC


이렇게 되어 있으면 데이터가 MBL에서 제 PC로 가고 있다는 말입니다.


그리고 회색 바가 움직이는데 데이터의 양을 볼 수 있습니다.


제일 위에 보시면 12.5kb, 25.0kb 이렇게 보이는데


FTP로 대용량 파일을 움직이면


위와 같이 회색바와 속도가 표시됩니다.




위 스샷은 MBL -> PC로 파일을 옮길 때 표시입니다.




위 스샷은 MBL <- PC로 파일을 옮길 때 표시입니다.



그리고 굉장히 많은 외부IP에서 접근을 시도하는 것을 볼 수 있습니다.


따라서 SSH의 경우 안쓴다면 막아두는게 최선입니다.


비번 뺏기고, 모든 권한을 날릴 수 있습니다.




하지만 아쉽게도 IP만 나오고 FTP계정이라든지, 그런 정보들은 볼 수 없습니다.


아무래도 저가형 NAS의 한계라고 봅니다.



이상 MBL에서 쓸 수 있는 모니터링툴의 설치 및 활용 방법에 대해 알아보았습니다.

관련자료

  • 서명
    우성짱의 NAS를 운영하고 있습니다.

    저의 즐거움이 여러분의 즐거움이면 좋겠습니다.

댓글 10 / 1 페이지

vega123님의 댓글

aptitude install htop

MyBookLive:~# aptitude install htop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Couldn't find any package whose name or description matched "htop"
Couldn't find any package whose name or description matched "htop"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done

이렇게 나오고 끝 입니다.

htop 실행은 안되구요 ^^;;

펌웨어는 최신입니다.

무기명님의 댓글

vega123 같은 증상인데 어떻게 해결해야 할까요?

MyBookLive:~# aptitude install iftop
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Reading task descriptions... Done 
Couldn't find any package whose name or description matched "iftop"
Couldn't find any package whose name or description matched "iftop"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Reading extended state information     
Initializing package states... Done
Reading task descriptions... Done
전체 99 / 1 페이지
RSS

최근글


새댓글


알림 0