Tip: Script for Checking for Server Load

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

Popularity: 8% [?]

3ix is Not A Cheap Hosting Provider

Remember my post about transferring my site to 3ix? It was the biggest mistake I ever made with respect to my blog. I remember bragging to my blogger friends how they provide chat support and how cheap their services are. But now I take back all those things I have bragged about because with 3ix, you get what you paid for - cheap hosting. Read the rest of this entry »

Popularity: 21% [?]

DataPipe Server Migration

DataPipe has announced that there will be a scheduled downtime for affected servers because of a physical migration. Unfortunately this included our colocated server and because of miscommunication, and we had little time to prepare for this event. The migration took place last Friday, March 14th between 12:00AM to 8:00AM EST.  Although DataPipe provided an 8-hour window for the downtime, they anticipated that the servers will be back to normal in less than 8 hours. However, in my experience, the usual 8-hour window normally takes longer than the announced downtime because of “unexpected events”.

Popularity: 4% [?]

PinoyTux Update

Ok, my recent attempt to transfer my blog to another webhosting company obviously failed resulting to 24-48 hours downtime. The reason? I was unable to transfer the contents of my blog to the new host. Their server keeps timing out while I was importing my WP files, which includes posts, comments and categories. My blog is relatively small so I don’t see any reason for it not to import. Then thinking of doing the transfer manually, I copied the contents of my web directory followed by dumping my WP database manually in phpMyAdmin. Guess what? phpMyAdmin timed out while I was importing my dump file.

Deciding not to waste any more time, I switched back my NS servers. If only the new host allows me to setup my site even without using the FQDN,  I can minimize the downtime. This kinda sucks but beggars can’t complain. The new web host also is banner-less, free hosting. This makes me think of hosting my site to an new paid web host.

I already have a paid webhosting company in mind who charges $1/mo for web hosting but if you have any other web hosting companies you would like to recommend, just let me know.

Popularity: 6% [?]