设置nmon 每天自动收集性能信息

简介:

cd   /oracle/home/erp1/ww/nmon 

$ touch   nmon.status 
cd   /oracle/home/erp1/ww/nmon 
$vi  nmon.sh
workdir=/oracle/home/erp1/ww/nmon 
cd  $workdir
ps -ef|grep nmon|grep -v nmon.sh|grep -v grep > $workdir/nmon.status
if [ ! -s $workdir/nmon.status ]
then
 nmon -f -s60 -c1440 -T
fi
$chmod  755   nmon.sh 
[appluat3@szx01 wq]$ crontab -l
# added by tony for nmon monitor
0-59 * * * *   /oracle/home/erp1/ww/nmon/nmon.sh >  /oracle/home/erp1/ww/nmon/nmon.sh.out 2>&1
本文转自ITPUB博客tolywang的博客,原文链接:设置nmon 每天自动收集性能信息,如需转载请自行联系原博主。
相关文章
|
3月前
|
域名解析 前端开发 JavaScript
信息收集工具 -- weblive
信息收集工具 -- weblive
16 0
|
3月前
|
数据采集 开发工具 git
dirmap信息收集工具
dirmap信息收集工具
26 0
|
8月前
|
安全 程序员 API
向大厂看齐!为自己的程序增加自动转储的功能!
向大厂看齐!为自己的程序增加自动转储的功能!
|
11月前
|
存储 Kubernetes Linux
k8s日志自动收集脚本
k8s日志自动收集脚本
145 0
|
12月前
|
监控 Shell
shell脚本写出监控内存,磁盘使用率的脚本,超过阈值,用“wall”命令发警报
shell脚本写出监控内存,磁盘使用率的脚本,超过阈值,用“wall”命令发警报
132 0
|
12月前
收集显示系统信息小脚本
收集显示系统信息小脚本
|
Python
python脚本基于端口开启服务识别信息收集
python脚本基于端口开启服务识别信息收集
187 0
|
Oracle 关系型数据库 调度
|
Oracle 关系型数据库
10G自动收集统计信息修改
10G自动收集统计信息修改
90 0
10G自动收集统计信息修改
|
缓存 Ubuntu Linux
性能分析(7)- 未利用系统缓存导致 I/O 缓慢案例
性能分析(7)- 未利用系统缓存导致 I/O 缓慢案例
395 0
性能分析(7)- 未利用系统缓存导致 I/O 缓慢案例