FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


os:linux:check:scripts:check_reboot.sh.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
os:linux:check:scripts:check_reboot.sh.html [2017/11/25 23:33]
kurihara
os:linux:check:scripts:check_reboot.sh.html [2018/02/04 23:57]
kurihara
Line 1: Line 1:
-[[os:info.html|]]+[[os:linux:ope:index.html]]
 ====== check_reboot.sh ====== ====== check_reboot.sh ======
 +
 +$FHHOME/target/scripts/check_reboot.sh
  
  
Line 17: Line 19:
 # Function # Function
 #============================================================================== #==============================================================================
 +process_check(){ 
 +   COUNT=`ps aux | grep $1 |grep -v grep |wc -l` 
 +   if [ "$COUNT" -ge 1 ] ; then 
 +      echo "$1 Process Found" 
 +   fi 
 +}
  
 #============================================================================== #==============================================================================
Line 54: Line 61:
  
 ## mount | egrep ^/dev #### ## mount | egrep ^/dev ####
-`mount | egrep ^/dev|nfs`+`mount | egrep "^/dev|nfs"`
  
  
Line 70: Line 77:
 # Process # Process
 #---------------------------------------------------------- #----------------------------------------------------------
 +# OS
 +`process_check snmp`
 +
 +# middleware
 +`process_check httpd`
 +`process_check nginx`
  
 @ @
Line 78: Line 91:
 \\ \\
 \\ \\
-[[os:info.html|]]+[[os:linux:ope:index.html]]
  
 \\ \\
 <WRAP box 90%> <WRAP box 90%>
 [[:index.html#OS Management|Top#OS Management]] [[:index.html#OS Management|Top#OS Management]]
-<catlist ..: -noAddPageButton -noHead -sortAscending>+<catlist ..:..: -noAddPageButton -noHead -sortAscending>
 </WRAP> </WRAP>
  


os/linux/check/scripts/check_reboot.sh.html.txt · Last modified: 2018/02/05 00:02 by kurihara