12 2011 档案

 
Linux下如果/var/log/messages停止写入內容如何解决
摘要:Linux下如果/var/log/messages停止写入內容如何解决author:someonefrom:http://tolywang.itpub.net/post/48/401699重启syslog# cd /etc/init.d# ./syslog restartShutting down kernel logger: OK ]Shutting down system logger: OK ]Starting system logger: OK ]Starting kernel logger: OK ]不过最好查询清楚是为什么不能写入linux os log的 ?----------- 阅读全文
posted @ 2011-12-28 20:30 csalp 阅读(3569) 评论(0) 推荐(0)
使用expect实现日志的自动转存
摘要:问题:自动将192.168207.230上的日志转存到192.168.207.27上。在192.168.207.230上执行shell脚本,通过调用系统命令scp实现日志的转存。1.将230上的/var/log/messages*全部都打包到一个gz文件:文件名格式:log_230_message-{date}.tar.gz,例如log_230_message-2011-12-26.tar.gz2.通过expect脚本实现交互式转存。3.清空/var/log/messages*##shell 部署到192.168.207.230上的var/user-shell/####crontabl:* 1 阅读全文
posted @ 2011-12-26 19:51 csalp 阅读(1463) 评论(0) 推荐(0)
smokeping:installation and configuration
摘要:smokeping:installation and configuration author csalp & cssalp1、download from :http://oss.oetiker.ch/smokeping/pub/wget http://oss.oetiker.ch/smokeping/pub/smokeping-2.6.5.tar.gztar zxf smokeping-2.6.5.tar.gzcd smokeping-2.6.5./configure...ecking checking for perl module 'RRDs'... Okc... 阅读全文
posted @ 2011-12-07 10:41 csalp 阅读(1641) 评论(0) 推荐(0)