Archive

Archive for November, 2010

Monitor Disk Space with Perl

November 20th, 2010 No comments

Have a client who has a very popular web site that contains terabytes of images. He has been hitting the limit of his available disk space and for reasons I won’t bore you with, getting more storage has proven difficult. We’ve had a few occasions where drive space ran out and of course, MySQL stops working at that point, so we needed something to alert us when the drive was getting close to being full. I’m not a big perl programmer, but here is what I cobbled together.

Fist, using cpan or other methods, install Filesys::DfPortable. Then run the following from a cron as often as necessary:

#!/usr/bin/perl
use strict;
use warnings;
use Filesys::DfPortable;
my $warning_level=98;
my $ref = dfportable("/", 1024); # Display output in 1K blocks
my $to='you@domain.comt';
my $from='you@domain.com';
my $subject='Low Disk Space';
if(defined($ref)) {
my $use = $ref->{per};
if ($use > $warning_level) {
my $out = sprintf("WARNING Low Disk Space : %0.2f%% ()\n",$use);
open(MAIL, "|/usr/sbin/sendmail -t");
print MAIL "To: $to\n";
print MAIL "From: $from\n";
print MAIL "Subject: $subject\n\n";
print MAIL "$out\n";
close(MAIL);
}
}

Categories: Server Administration Tags:

RingCentral

November 20th, 2010 No comments

I have been in the process of switching my phone system over to RingCnetral, and I have to say, I love it! For $50 per month you get a full featured PBX system with unlimited calling. You can do just about anythng you want with this system. I cannot give it higher marks.

Categories: General Business Tags:

SoftLayer Merges with The Planet

November 16th, 2010 No comments

I’ve been in this business a long time. I started out back in the RackShack days. Remember Robert Marsh? What a character that guy was! I’ve seen acquisitions and takeovers abound, and all of them made me nervous and most resulted in a reduction in customer service.

However, I feel differently this time around. I’ve been with SoftLayer for many years and watched them grow exponentially without the usual degradation of service that is so common in this industry.

I have every faith and confidence in the SoftLayer management team and I think this will result in a better overall experience for everyone.

And if anyone would like to see a photo of your humble host, you can surf on over here:

http://www.thewhir.com/web-hosting-news/111210_The_Value_of_Being_the_Biggest_SoftLayer_Tops_Market_with_76K_Servers

I’m the guy who is NOT Lance Crosby, CEO of SoftLayer.

Categories: Industry News Tags:

New cPanel Version

November 16th, 2010 No comments

Been poking around the 11.28 release of cPanel. It’s really an improvement in many areas. Some clients had even reported better spam handling, but that is just anecdotal at this point.

Categories: Industry News Tags:

site tracking with Asynchronous Google Analytics plugin for Multisite by WordPress Expert at Web Design Jakarta.