09、主要サービスの可用性監視(一)


1、方案:
1)       , IDC              , 10        。
2) IDC      7   30.9        。
 
2、xmlドキュメントの属性値:
  :Service,ServerIp,Port,UrlName,UrlValue,Des,MonitoryPoint,IsAlert
port       nmap   ,url   curl/wget   

3、プロジェクトの各書類の説明:
download    :  /infowarelab/moodle/etraining/download
conference。xml
(1)web    
(2)gc/infosvr      443,80  (    , IDC   443);
(3)  。com     110,25    ;
(4)  box   ,  infosvr  ,    8000    ,    4000,8000,9000    ,    80,443    ;

pso.xml
(1)  。cn     110,25     url  ;

rtothers。xml
(1)  Red5 domain service  ;
(2)    SIPProxy     ;
(3) CTI,        IDC  ,  easycall-cti.infowarelab.cn,60.12.234.21 443    ;
(4)       ,         ,  http://download-xs.infowarelab.cn/download  
 
2、一部の文法説明:
1、    “|”  
        cat errinfo.log|sed 's/|/\<\/td\>\<td\>/g'|sed -e 's/$/\<\/td\>\<\/tr\>\<tr\>\<td\>/'|tr -s "
" " "|tr -s "\r" " ">b.log 2、wget // 3 , 1s time wget -T 1 -t 3 http://10.0.1.23 3、grep ,-w, --word-regexp; -x, --line-regexp grep -w 431 grep -E "aaa|bbb" 3、 , nmap -P0 -p80,113 -host_timeout 45000 59.151.25.148 4、 , , , ? temp=`/usr/bin/nmap -P0 -p80,443 -host_timeout 45000 59.151.25.148|grep open ` echo "${temp}"|wc -l 5、 str2="a#b#c" a=($(echo $str2 | tr '#' ' ' | tr -s ' ')) length=${#a[@]} for ((i=0; i<$length; i++)) do echo ${a[$i]} done #echo ${a[2]} 6、 : ; 7、 : sed, tr( ) echo "t,xx,t" |sed 's/,/|/g' tr '_' " " 8、yum update python yum clean all yum -y update 9、 , : cd ${ConfigDir} lcd ${CurDir} 10、 if [ "$variable" ]; then echo " " else echo " " fi 11、 , shell LogFile=$6 if [ -z ${LogFile} ];then echo "The lack of parameters, exit checkport" exit fi