June 12, 2015

Linfo – Công cụ theo dõi tình trạng hệ thống ngay trên web

Thông thường để xem một số thông tin hệ thống như CPU, RAM, Disk… chúng ta vẫn phải login SSH thì mới kiểm tra được. Bên cạnh đó cũng có một số tool hỗ trợ xem thông tin này trực tiếp trên nền web nhưng cài đặt khá vất vả.
Hôm nay, mình xin giới thiệu một công cụ PHP đơn giản Linfo hỗ trợ các bạn có thể xem trực tiếp tình trạng hệ thống realtime ngay trên trình duyệt.
Giao diện Linfo như sau:

Linfo được viết bởi tác giả Joe Gillotti, hiện tại đang hỗ trợ rất nhiều nền tảng như:
  • Linux
  • FreeBSD
  • NetBSD
  • OpenBSD
  • DragonflyBSD
  • Darwin/Mac OSX
  • SunOS/Solaris(alpha)
  • Minix (alpha/pointless)
  • Windows
Các bạn có thể xem được các thông tin sau với Linfo:
  • CPU type/speed; Architecture
  • Mount point usage
  • Hard/optical/flash drives
  • Hardware Devices
  • Network devices and stats
  • Uptime/date booted
  • Hostname
  • Memory usage (physical and swap, if possible)
  • Temperatures/voltages/fan speeds
  • RAID arrays
  • Via official extensions:
    • Truecrypt mounts
    • DHCPD leases
    • Samba status
    • APC UPS status
    • Transmission torrents status
    • Soldat server status
    • CUPS printer status
    • IPMI
    • libvirt VMs
    • more

Hướng dẫn cài đặt Linfo

  1. Download code về từ Github, hoặc dùng link trực tiếp này.
  2. Giải nén và đổi tên file sample.config.inc.php thành config.inc.php
  3. Upload code lên VPS và truy cập trực tiếp file index.php. Xong!
Quá trình cài đặt rất đơn giản phải không 😀
Nếu có tool nào hay hơn, hãy giới thiệu cho mọi người cùng biết nhé.

Related Posts:

  • cấu hình shinken để gửi mail Tại host shinken Sửa file cấu hình host cần gửi email cảnh báo vi /etc/shinken/hosts/srv-webserver.cfg define host{ use linux-ssh host_name webserver-local address 10.145.34.131 contacts admin ;người dùng được gửi mai… Read More
  • Hướng dẫn sử dụng nrpe Tại Linux host được monitor wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz tar -xvf nrpe-2.15.tar.gz cd nrpe-2.15/ useradd nagios apt-get install libssl-dev xinetd nagios-plugins -y ./… Read More
  • Hướng dẫn sử dụng linux-snmp Tại host monitor cài Shinken su - shinken shinken install linux-snmp vi /etc/shinken/hosts/target.cfg Thêm vào nội dung như sau: define host{ use linux-snmp contactgroups adm… Read More
  • Hoặc cài đặt SSMTP trên Shinken Server Tại Shinken host sudo apt-get install ssmtp mailutils -y Sửa file cấu hình vi /etc/ssmtp/ssmtp.conf # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root=shinkenvdc@gmail.com … Read More
  • Hướng dẫn Giám sát một Switch Cisco Bật SNMP trên switch cisco enable config terminal snmp-server community public RO snmp-server host 10.145.34.130 public Cấu hình tại Shinken host Cài đặt plugin check_nwc_health su - shinken wget http://labs.consol.de/d… Read More

0 comments:

Post a Comment