Browsing all articles tagged with shell
Jun
1

Tip: Script for Checking for Server Load

Author Rai    Category Linux     Tags , , , , ,

I wrote this simple bash script so I could tell the server’s current load by email. The script is run every 15 minutes and very lightweight.

#!/bin/bash

LOAD=`uptime | awk -F: ‘{print $5}’ | awk -F\, ‘{print $1}’`
RCPT=”kamotegirl@pinoytux.com”
TIMESTAMP=`date +%D\ %T\ %Z`

`uptime|mail -s “Server Load as of $TIMESTAMP is $LOAD” $RCPT`

Then setup the cronjob to execute the script to run every 15 minutes and send an email to the RCPT.


*/15 * * * * /home/bom/load_alert.sh > /dev/null

Apr
13

Secure Telnet

If you are looking for secure connectivity, I am sure that there a lot of free and open source softwares that you can use. But if you are looking for services that are backed with real customer support, then visit Pragma Systems and check their services.
read more

Powered by 1and1.comGlobat Webhosting Earn with Your BlogAdvertise @ PinoyTux

Search PinoyTux

Subscribe to Email Feeds

Enter Email Address:

Blog Lounge

Popular Posts

Recent Posts

Drop your Card Here

Recent Comments

Site Stats