FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
os:linux:check:scripts:check_reboot.sh.html [2017/11/25 23:29] kurihara |
os:linux:check:scripts:check_reboot.sh.html [2018/02/05 00:02] (current) kurihara |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[os:info.html|]] | + | [[os:linux: |
====== check_reboot.sh ====== | ====== check_reboot.sh ====== | ||
+ | |||
+ | $FHHOME/ | ||
Line 6: | Line 8: | ||
#!/bin/bash | #!/bin/bash | ||
# | # | ||
- | # systeminfo.sh | + | # check_reboot.sh |
# | # | ||
# How to use | # How to use | ||
Line 17: | Line 19: | ||
# Function | # Function | ||
# | # | ||
+ | process_check(){ | ||
+ | | ||
+ | if [ " | ||
+ | echo "$1 Process Found" | ||
+ | fi | ||
+ | } | ||
# | # | ||
Line 30: | Line 37: | ||
+ | ## which ntpq > /dev/null 2>&1 && ntpq -p #### | ||
+ | `which ntpq > /dev/null 2>&1 && ntpq -p` | ||
+ | |||
+ | ## which chronyc > /dev/null 2>&1 && chronyc sources -v #### | ||
+ | `which chronyc > /dev/null 2>&1 && chronyc sources -v` | ||
Line 49: | Line 61: | ||
## mount | egrep ^/dev #### | ## mount | egrep ^/dev #### | ||
- | `mount | egrep ^/dev` | + | `mount | egrep "^/dev|nfs"` |
Line 65: | Line 77: | ||
# Process | # Process | ||
# | # | ||
+ | # OS | ||
+ | `process_check snmp` | ||
+ | |||
+ | # middleware | ||
+ | `process_check httpd` | ||
+ | `process_check nginx` | ||
@ | @ | ||
Line 73: | Line 91: | ||
\\ | \\ | ||
\\ | \\ | ||
- | [[os:info.html|]] | + | [[os:linux: |
\\ | \\ | ||
<WRAP box 90%> | <WRAP box 90%> | ||
[[: | [[: | ||
- | <catlist ..: -noAddPageButton -noHead -sortAscending> | + | < |
</ | </ | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.