Softwares |
Main /
ServerLoadAlertScriptMain.ServerLoadAlertScript HistoryHide minor edits - Show changes to markup Changed line 5 from:
#uptime aleti script . to:
#uptime alert script . Changed lines 1-3 from:
The script below can be used as a uptime alert script on your server. to:
The script below can be used as a uptime alert script on your server. Changed lines 9-10 from:
`uptime| mail -s "**Server-NAME LOAD is $UP...please login to check" [email protected]` to:
`uptime| mail -s "**Server-NAME** LOAD is $UP... please login to check" [email protected]` Added lines 1-11:
The script below can be used as a uptime alert script on your server. #!/bin/bash #uptime aleti script . UP=`uptime|awk '{print $(NF-2)}'|cut -d. -f1` if test $UP -gt 4 then `uptime| mail -s "**Server-NAME LOAD is $UP...please login to check" [email protected]` fi |