友情提示:欢迎光临!本地已启用二维码api网关,地址是https://api.slogra.com

shell检测系统文件完整性

post by rocdk890 / 2014-12-9 11:44 Tuesday linux技术

  今天发现个可以检测系统文件完整性的shell脚本,自己试了下还可以吧,推授给大家.
  系统:centos 5.x
脚本内容:
cat my_filecheck.sh

#!/bin/bash
#
# 变量首先声明才能使用
shopt -s -o nounset....

阅读全文>>

标签: linux 系统 shell 文件 检测 md5sum flie 完整性

评论(2) 引用(0) 浏览(4161)

shell监控iptables规则是否改变

post by rocdk890 / 2014-5-1 10:52 Thursday linux技术

  最近看了一篇通过nagios实现MD5实时监控iptables状态的文章,就想是否可以用shell也做到监控iptables规则改变,经过实验,就有了下面这个脚本.
  系统:centos 5.x
脚本内容:
cat check_iptables.sh

#!/bin/bash
if [ ! -f .count ];then
  iptables -L -n|md5sum|aw...

阅读全文>>

标签: iptables shell 监控 规则 md5 md5sum

评论(2) 引用(0) 浏览(4774)