有没有办法看到红帽免费的历史logging?

有没有一个内置的方式来检查空闲的历史logging或任何其他红帽6.5的性能统计 – 例如,过去一小时,几天,几周等。

在其他系统上,我以前使用过创build性能统计日志的orca。

如果没有内置的,是否有推荐的方法。

总是没有一个。 这些软件包位于工程师设置的缺省仓库中,如sar ,但未安装在默认安装中。

yum install sysstat 

这将添加sar,sadf,sa1,sa2实用程序和默认cron。

 [root@node-2 cron.d]# pwd /etc/cron.d [root@node-2 cron.d]# cat sysstat # Run system activity accounting tool every 10 minutes */10 * * * * root /usr/lib64/sa/sa1 1 1 # 0 * * * * root /usr/lib64/sa/sa1 600 6 & # Generate a daily summary of process accounting at 23:53 53 23 * * * root /usr/lib64/sa/sa2 -A 

默认情况下,sa1将每10分钟运行一次,并收集系统性能数据。

一旦有了这个,你就可以像这样分析历史系统的性能。

 Example 1. RAM stats for day 27 of the current month sadf -d /var/log/sa/sa27 -t -- -r Example 2. CPU stats for day 27 of the current month sadf -d /var/log/sa/sa27 -t -- -u Example 3. IO stats sadf -d /var/log/sa/sa27 -t -- -b