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