Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Linux

3 เครื่องมือ System Monitoring สำหรับ Ubuntu ที่ดีที่สุด

เมื่ออุปกรณ์/เซิร์ฟเวอร์/บริการเพิ่มขึ้น การ System Monitoring (ดูแลระบบ) จึงสำคัญขึ้น — ครอบคลุม capacity, activity, health ของ hosts และ apps ทั้ง on-premise และ cloud จับปัญหา real-time ก่อนกระทบผู้ใช้

Ubuntu มี System Monitor ตัวพื้นฐาน (คล้าย Task Manager Windows) แสดง process, resource usage แต่มีเครื่องมือขั้นสูงกว่าแสดงรายละเอียด CPU, RAM, Disk, Network มากขึ้น

1. Nagios

Monitor servers/workstations ครบวงจร: service/process state, OS metrics, filesystem usage ฯลฯ อันทรงพลัง, scalable, reliable, customizable แต่ config ซับซ้อน มาตรฐานอุตสาหกรรม

Nagios Core (Free/Open Source)

  • Monitor: servers, apps, services, network protocols, system metrics
  • Alert: SMS, email, custom script เมื่อ critical components fail/recover
  • Reports: ประวัติ events, outages, notifications, graphs สำหรับวางแผน upgrade
  • Web interface, multi-tenant, extendable ด้วย add-ons (in-house/third-party/community)
  • Learning curve มี แต่มุมชุมชนช่วยเหลือแน่นแฟ้น

Nagios XI (Commercial)

  • Core 4 monitoring engine (performance สูงสุด)
  • Configuration wizards, configuration snapshot (rollback)
  • GUI ปรับแต่งต่อ user, custom role assignment (security)
  • 60-day trial

จุดเด่น Nagios

  • ใช้ง่าย, มีฟรี/พรีเมียม
  • Monitor IT infrastructure ครบวงจร
  • Multi-user web access
  • Config เร็ว, จัดการ user ง่าย
  • Extendable ด้วย add-ons

2. Glances

Cross-platform (Linux, macOS, Windows, BSD) เขียน Python + psutil แสดงข้อมูล "แบบมองเห็นทุกอย่างทีเดียว" (at a glance)

  • Monitor: load average, CPU, memory, disk I/O, network interfaces, mounted devices, filesystem usage, active/top processes
  • Thresholds 4 ระดับสี: OK (เขียว), Careful (น้ำเงิน), Warning (ม่วง), Critical (แดง) — default: 50, 70, 90% ปรับได้ใน /etc/glances/glances.conf
  • Web-based GUI (เข้าถึงจากเบราว์เซอร์), monitor remote systems ได้
  • ติดตั้งง่าย: sudo apt install glances (อยู่ใน repo Ubuntu)
  • ข้อเสีย: ใช้ CPU ค่อนข้างสูง

3. htop

Interactive process viewer (text-mode) real-time แสดง process ทั้งหมด + usage สีสันสวยงาม (ncurses) รองรับ mouse

  • Summary section ยืดหยุ่น 2 คอลัมน์ อ่านง่าย (บาง metric ไม่มี เช่น CPU % แยก idle/user/system)
  • Function keys: config summary, เพิ่ม data display, sort process (memory/CPU/PID/user)
  • Cross-platform ตั้งแต่ v2.0 (Linux, BSD, macOS)
  • Config file ต่อ user, auto-save การเปลี่ยนแปลง

สรุป

  • Nagios: Enterprise-grade, infrastructure monitoring ครบวงจร, alerting, reporting
  • Glances: Cross-platform, web UI, ข้อมูลหนาแน่น, threshold สี, remote monitoring
  • htop: Interactive, real-time, สีสัน, ใช้ง่าย, process management

คุณใช้ตัวไหนสำหรับ Ubuntu?