Recent Changes - Search:

Softwares

.

ServerLoadAlertScript

The script below can be used as a uptime alert script on your server.

   #!/bin/bash
   #uptime alert 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