소스 검색

add monitor disk

stanley-king 3 년 전
부모
커밋
22acf2458d
2개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 2
      util/arw_monitor.sh
  2. 1 1
      util/purge.sh

+ 0 - 2
util/arw_monitor.sh

@@ -48,8 +48,6 @@ do
 done
 
 echo $str_report >> /mnt/xyzshop/util/a.log
-echo $redis_host >> /mnt/xyzshop/util/a.log
-
 redis_host=$XYZ_REDIS_HOST
 netip=$XYZ_NETIP
 echo "HSET nc_disk_monitor $netip '$str_report'" | redis-cli -h $redis_host -p 6379

+ 1 - 1
util/purge.sh

@@ -3,7 +3,7 @@
 # MyISAM直接更改数据库目录下的文件即可
 
 
-
+source /etc/profile
 declare -i cur_diff=0 min_diff=3600
 
 time_diff() {