GLANCES ตรวจสอบสถานะเซิฟเวอร์

Glances เป็นเครื่องมือที่เหมาะสำหรับ Admin มือใหม่ที่ยังไม่ค่อยมีประสบการณืในการตรวจสอบความผิดปกติของระบบเช่นการตรวจสอบ CPU/Memory usage, Swap, Disk I/O, Network ซึ่งปกติผมก็จะวิเคราะห์สิ่งเหล่านี้ด้วยคำสั่ง top ซึ่งก็ใช้เวลาพอสมควรกว่าจะเจอสาเหตุ ซึ่ง Glances ตอบโจทย์ในเรื่องของความง่ายโดยจะแสดงผลความผิืดปกติกลับมาในรูปแบบ สี เช่น สีแดง แสดงว่ามีปัญหาแล้ว สีเขียวทำงานปกติดี อะไรประมาณนี้ ^ ^

 

ขั้นตอนการติดตั้ง

 

CentOS/RHEL 6.5

yum install glances

 

Ubuntu/Debian 13:10

sudo apt-get install python-pip build-essential python-dev
sudo pip install Glances
sudo pip install PySensors

หลังจากติดตั้งเรียบร้อยสามารถเรียกใช้งานผ่านคำสั่ง glances

 

 

การแสดงผลของสีประกอบไปด้วย

Green : the statistic is “OK”
Blue : the statistic is “CAREFUL” (to watch)
Violet : the statistic is “WARNING” (alert)
Red : the statistic is “CRITICAL” (critical)

 

สามารถเรียงการแสดงผลโดยใช้ key ต่างๆได้ดังนี้

c: Sort processes by CPU%
m: Sort processes by MEM%
p: Sort processes by name
i: Sort processes by IO Rate
d: Show/hide disk I/O stats
f: Show/hide file system stats
n: Show/hide network stats
s: Show/hide sensors stats
b: Bit/s or Byte/s for network IO
w: Delete warning logs
x: Delete warning and critical logs
1: Global CPU or Per Core stats
h: Show/hide this help message
q: Quit (Esc and Ctrl-C also work)
l: Show/hide log messages

แหล่งข้อมูล
http://www.sysads.co.uk/2014/02/monitor-ubuntulinux-mint-glances/?utm_source=rss&utm_medium=rss&utm_campaign=monitor-ubuntulinux-mint-glances

  • 0 Users Found This Useful
這篇文章有幫助嗎?

Related Articles

เปิดปิด port cisco

  Simple examples of brining up and down the interfaces on CISCO devices with shutdown and...

สอนติดตั้ง VestaCP

Vesta Control Panel คือ? Vesta เป็น Web Hosting Control Panel ประเภท Open Source...

สอนตั้งค่า Network บน CentOS7

After installing Centos 7, You may not able to connect network in that machine. This will happen...

วิธีทำ Virtual Host บน XAMPP ในระบบปฏิบัติการ Windows

วิธีทำ Virtual Host บน XAMPP ในระบบปฏิบัติการ Windows Virtual Host คืออะไร ? Virtual Host...

สอนการเปลี่ยน Port remote desktop สำหรับ Windows

วันนี้จะมาแนะนำวิธีเปลี่ยน Port ของ Remote Desktop ใน Windows 10, Windows 8.1 และ Windows 7...

Powered by WHMCompleteSolution