shell脚本监控监听器进程
来源:互联网 发布:电子数据交换技术ppt 编辑:程序博客网 时间:2024/05/20 04:48
脚本代码如下:
#!/bin/bash
. /home/oracle/.bash_profile
tempfile=/oracle/admin/$ORACLE_SID/tempfile.lis
lsnrctl status > $tempfile
if [ $?!=0 ]
then
echo " " >> $tempfile
echo "=============================================" >> $tempfile
echo " " >> $tempfile
date >> $tempfile
echo "Listener is down, restarting it agin." >> $tempfile
lsnrctl start >> $tempfile
if [ $?=0 ]
then
mail zgk_baqi@126.com -s "Listener is restarted." < $tempfile
else
mail zgk_baqi@126.com -s "Listener is down, restarting failed." < $tempfile
fi
fi
rm -f $tempfile
- shell脚本监控监听器进程
- shell脚本监控进程
- linux shell脚本-监控进程
- 监控进程的shell脚本
- 编写可以监控oracle监听器是否启动的shell脚本
- 用shell脚本监控进程,挂掉后重启
- centos中shell脚本监控php进程
- linux进程监控重启shell脚本
- 两段shell脚本,监控进程和主动结束进程
- linux shell脚本监控进程,如果进程不在,则重启之
- shell脚本实现某一进程是否运行结束的监控
- Shell脚本编程——用smaps监控进程内存
- Shell脚本编程——监控进程内存之pmap
- linux监控某个进程的运行shell脚本
- Shell脚本监控、拉起Nimbus和Supervisor进程
- 自动监控进程并启动的shell脚本
- linux shell脚本监控进程崩溃自动重启
- shell 脚本监控 phpj 进程 screen 发送信号
- 【redis】Redis几个认识误区
- 面向对象--继承,多态,封装
- 基础知识 黑客域名劫持攻击详细步骤
- Linux 0.12 OS. math - add.c
- Android学习笔记之AndroidManifest.xml文件解析
- shell脚本监控监听器进程
- CSS中Backgroud-position(背景图片)定位问题详解
- Assert(断言实现机制剖析)
- mssql server 导入oracle的方法之一
- 以前攒的一些函数,都是用来抓网页做分析的,有可能有失效的,凑合看吧
- 框架搭建之二--引入SDWebImage
- 计算当天起始点和结束点时间戳 去当天的数据
- 项目安排
- 本地存储(html5的localStorage和ie的userData)微博回填功能