监控概览

常见监控命令

cpu、内存、硬盘、网络

  • free

  • df

  • top

  • htop (epel)

  • uptime

  • iftop

  • iostat

  • iotop

  • vmstat

  • netstat

  • nethogs (每一个进程用了多少流量)

使用Shell脚本监控服务器

内存监控

内存:每隔一分钟监控一次内存,当你的可用内存低于100M时发出邮件报警,要求显示剩余内存值

Last updated