Linux系统信息收集模块-Sys::Statistics::Linux
Perl是Linux下优秀的编程语言,它们在工作的很融洽。linux有自己的很多参数指标,它们用于反应系统的运行状态,管理员也需要它们对系统或业务进行分析等。Sys::Statistics::Linux就是这样一个模块,用于统计系统运行的各个参数,并有相应的接口方便读取。Sys::Statistics::Linux is a front-end module and gather different linux system information like processor workload, memory usage, network and disk statistics and a lot more. Refer the documentation of the distribution modules to get more information about all possible statistics.
相应的系统参数指标有:
sysinfo,系统的基本信息,主机名、内核版本、网口、运行时间等。
cpustats,cpu的使用情况。
procstats,进程的状态。
memstats,内存及虚拟内存的使用情况。
pgswstats,内核分页的情况。
netstats,网络运行状态,包括网卡、流量等各个参数。
sockstats,socket使用情况。
diskstats,磁盘状态,包括i/o等。
diskusage,磁盘各个分区的使用情况。
loadavg,平均负载。
processes,运行中的各个进程状态信息。
在nagios的主页面上,有一个基本此模块的系统信息监控脚本,能收集到比较全面的系统信息状态并判断。