Recent Changes - Search:

Softwares

.

ServerLoadAlertScript

Main.ServerLoadAlertScript History

Hide minor edits - Show changes to output

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:
%red%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" alert@your-company.com`
to:
`uptime| mail -s "**Server-NAME** LOAD is $UP...
please login to check" alert@your-company.com`
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" alert@your-company.com`
fi
Edit - History - Print - Recent Changes - Search
Page last modified on December 05, 2006, at 09:08 AM