Original computing articles by a systems administrator

Category Archives: Scripting

Debuging a script that parses /proc/net/dev

A Intermittent Problem: I wrote a Perl script for Nagios that would figure out the bandwidth of an interface by parsing TX (transmit) and RX (receive) bytes from /proc/net/dev. The proc file system is a virtual file system that provides the ability to view various kernel statistics as well as modify some kernel parameters. MyContinue Reading

How to Cross Compile the Bash shell for Android 1.5

Introduction: I just got a new G1 Android phone, and since it runs Linux I just had to get the Bash shell running on it, the built in shell would just not do.  I do need my tab completion after all. Cross compilation is the process of compiling software on one platform that is meantContinue Reading

My Not-So-Shabby Screen and Gnome-Terminal Setup

Introduction For a system administrator it is important to have an efficient and comfortable interface to all your servers. GNU Screen is an excellent utility to be able to have a single terminal connected to multiple servers that won’t disappear when you close the window. I have a set up that allows me to spawnContinue Reading

Parsing the The American Recovery and Reinvestment Act with Perl

Introduction: I think of the American government as a democratic republic. The government is run by a small group of people, a republic, that is elected by the public to represent them, a democracy. Congress, and the bills they pass, should have oversight from the people. Although the bills are made available to the public,Continue Reading

OpenVZ Bean Counters Nagios Script

“OpenVZ is container-based virtualization for Linux. OpenVZ creates multiple secure, isolated containers (otherwise known as VEs or VPSs) on a single physical server enabling better server utilization and ensuring that applications do not conflict.” For each of these containers or VEs, there are resource limits. The psuedo file system, /proc, tracks various process and kernelContinue Reading