Posts Tagged ‘Bash

I recently converted a number Amazon Opsworks instances to be time based, so that they shut down at the end of the working day. After doing so, I kept seeing that the Opsworks life cycle events always being marked as in progress. Every morning the instances would be marked booting and would be able to […]

Whilst recently looking into usage of SSL, I needed to analyse some logs from apache to determine requests per second. Initially I wrote a quick bash script to do this, however figured it would be handy to elaborate on this, as a result I have posted a perl script on github at apache-log-stats total_requests=$(zcat b2f01_ApacheAccess.2011-12-05.gz […]

I previously wrote about “Installing Java & MySQL – unattended/non-interactive installation”. Whilst using slack, I have been running apt-get during postinstall rather than preinstall. Files are transferred from slack after preinstall as such transferring any files that conflict with the packages configuration files, apt-get will prompt regardless of DEBIAN_FRONTEND=noninteractive. Not ideal if your trying to […]

I wrote a few munin plugins to monitor memory, CPU and IO usage per process. After collecting the stats for a few days I noticed that MySQL CPU usage had a constant value of 9.1, however all other processes collected CPU usage correctly.. CPU usage proc=mysqld value=$(ps u -C $proc | awk ‘BEGIN { sum […]


About this blog

I have been a developer for roughly 10 years and have worked with an extensive range of technologies. Whilst working for relatively small companies, I have worked with all aspects of the development life cycle, which has given me a broad and in-depth experience.