Home | 簡體中文 | 繁體中文 | 雜文 | 知乎專欄 | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 視頻教程 | 打賞(Donations) | About
知乎專欄多維度架構 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者”

第 4 章 監控命令

System Monitoring & Utility

目錄

4.1. User
4.1.1. last, lastb - show listing of last logged in users
4.2. Memory
4.2.1. Memory
4.2.2. vmstat - Report virtual memory statistics
4.2.3. mpstat
4.2.4. pmap - report memory map of a process
4.3. CPU
4.3.1. uptime - Tell how long the system has been running.
4.3.2. top - display Linux tasks
4.3.3. atop - AT Computing's System & Process Monitor
4.3.4. htop - interactive process viewer
4.4. Processes
4.4.1. strace - trace system calls and signals
4.5. lsof - list open files 檔案監控
4.5.1. $$
4.5.2. 監控檔案系統
4.5.3. 設備檔案
4.5.4. 用戶監控
4.5.5. 監控進程
4.5.6. 監控網絡
4.5.7. lsof 高級用法
4.5.8. 根據檔案描述列出對應的檔案信息
4.6. Harddisk IO
4.6.1. input/output statistics
4.6.1.1. 5 秒監控一次
4.6.2. iotop - simple top-like I/O monitor
4.6.3. ionice - set or get process I/O scheduling class and priority
4.6.4. smartd - SMART Disk Monitoring Daemon
4.7. Network IO
4.7.1. netstat
4.7.2. ss
4.7.2.1. 查看tcp流量控制相關參數值
4.7.3. iftop - display bandwidth usage on an interface by host
4.7.4. iptraf - Interactive Colorful IP LAN Monitor
4.7.5. nload: Console application which monitors network traffic and bandwidth
4.7.6. bwm - Bandwidth Monitor
4.7.7. iptstate - A top-like display of IP Tables state table entries
4.8. Service
4.8.1. NFS
4.8.1.1. nfsstat
4.8.1.2. nfswatch
4.8.2. apachetop
4.9. 檔案監控
4.10. watchdog
4.11. nmon
4.12. Hardware
4.12.1. temperature/voltage/fan
4.12.2. mcelog - Decode kernel machine check log on x86 machines
4.13. sar - System Activity Reporter
4.14. SMS
4.14.1. gnokii
4.14.1.1. 安裝
4.14.1.1.1. Ubuntu
4.14.1.1.2. CentOS
4.14.1.2. 配置
4.14.1.3. 發送測試短信
4.14.1.4. 接收短信
4.14.1.5. 撥打電話
4.14.2. AT Commands
4.14.2.1. 發送短信
4.14.2.2. 語音通話
4.15. IPMI (Intelligent Platform Management Interface)
4.15.1. OpenIPMI
4.15.2. freeipmi
4.15.2.1. ipmiping
4.15.2.2. ipmimonitoring
4.15.2.3. ipmi-sensors
4.15.2.4. ipmi-locate
4.15.3. ipmitool - utility for controlling IPMI-enabled devices
4.15.3.1. ipmitool
4.15.3.1.1. ubuntu
4.15.3.1.2. CentOS
4.15.3.2. sensor
4.15.3.3. ipmitool shell
4.15.3.4. ipmitool 訪問遠程主機
4.15.3.5. Get chassis status and set power state
4.15.3.6. Configure Management Controller
4.15.3.6.1. Management Controller status and global enables
4.15.3.6.2. Configure LAN Channels
4.15.3.6.3. Configure Management Controller users
4.15.3.6.4. Configure Management Controller channels
4.15.3.7. Example for iDRAC
4.15.3.7.1. 更改IP地址,子網掩碼與網關
4.15.3.7.2. 更改 iDRAC LCD 顯示屏
4.15.3.7.3. 更改 iDRAC 密碼
4.15.3.7.4. 關機/開機
4.15.3.7.5. 啟動列表
4.16. JVM
4.16.1. jconsole
4.16.2. jps - Java Virtual Machine Process Status Tool
4.16.3. jinfo - Configuration Info
4.16.4. jstat - Java Virtual Machine Statistics Monitoring Tool
4.16.5. jHiccup

4.1. User

4.1.1. last, lastb - show listing of last logged in users

[neo@linux ~]$ last reboot
reboot   system boot  2.6.18-164.15.1. Wed Apr 28 23:43         (6+21:31)
reboot   system boot  2.6.18-164.15.1. Fri Apr 16 04:07         (12+19:23)
reboot   system boot  2.6.18-164.15.1. Fri Apr 16 02:19          (01:46)
reboot   system boot  2.6.18-164.el5   Thu Apr 15 18:52          (07:25)

wtmp begins Thu Apr 15 18:52:15 2010