Tag Archives: perl

Auto association of ec2 elastic IPs on instance launch

What a pain is to have to associate elastic IPs when launching Amazon AWS ec2 instances. Think about 15-20 machines which need static (elastic) ip. I solved this problem with a bit of Perl code: Read more »

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to reddit

Reinstalling list of GEMs on a new server

When I have to migrate servers to new OS or reinstall list of gems on another box you can get a quite big list of gems to install. This post will describe how to do it “admin way” which basically means that whatever has to be done more than once should be scripted ;) Read more »

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to reddit

Nagios check_file_age mod

As I don’t think in seconds about time and more like hours days etc. I’ve added this small bit of code to Nagios check_file_age script to display age in days. I’m using this to check PID file age for service that needs daily/weekly restarts. Read more »

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to reddit

Find what is eating your disk space using Perl

A while ago I’ve wrote a small script which I use to pin down the directories and files which suck off the space from the hard drives, usually it’s some user leaving to big log files, unused project files etc. This script will help you find those files or directories fast.
Read more »

Share on TwitterShare on TumblrSubmit to StumbleUponSave on DeliciousDigg ThisSubmit to reddit