Archive for 'Bash' Category

Monitoring ping times to a server with Zabbix

By jbayer - Last updated: Tuesday, November 15, 2011

We needed to monitor ping times from one server to another, neither being the Zabbix server.  Zabbix doesn’t have a way to do this; the only pings that Zabbix can do are from the Zabbix server to another server. I wrote the attached script to solve this problem.  Install the script onto each client that […]


Setting up a private RPM repo

By jbayer - Last updated: Tuesday, August 9, 2011

I had a local need for a private repo, for some of our locally-built RPMS. Since I’ve previously set up a private mirror, I decided to write a script which would both setup the directory structure I needed, and to do whatever rsyncing would be needed for a mirror. To install, just copy it into […]


Software Distribution & Syncronization

By jbayer - Last updated: Monday, February 28, 2011

I recently had to update about 30 different servers with the identical software.  This is an all-too-common occurance for an administrator, and there are many different systems available to do this.  However, most of them do too much and are generally non-trivial to set up and manage.  I wanted a system which would be easy […]


Delay a script by variable time

By jbayer - Last updated: Monday, January 31, 2011

When managing many systems in a server farm or a virtual environment, quite often the same script needs to be run on all the systems.  However, if the script happens to put a severe load on a common resource such as a storage device, the possibility exists that the storage device can be overwhelmed and […]


Linux-based Security Camera Solution

By jbayer - Last updated: Monday, January 31, 2011

With the explosion of inexpensive video cameras for computer use, (both USB and IP cameras), it has become fairly easy to set up a comprehensive video surveillance system.  You can go out and buy complete kits, which include a set of cameras and a central control station.  Or, you could roll your own, giving you […]


Start, stop, and restart Virtual Machine from the command line

By jbayer - Last updated: Monday, January 31, 2011

These days virtual machines are all the rage.  They make sense in a lot of areas, and can reduce both the floorspace, power requirements, costs, testing, stability, etc.  This article is not about the reasons to have a virtual machine, but rather, how to control them from a command line. Most Linux distributions use libvirt […]


How can I convert my running system to a RAID 1 System ?

By jbayer - Last updated: Wednesday, November 3, 2010

There are a number of online guides on how to convert a running Linux system to a RAID-1 setup.  Rather than repeat the same information, I’m providing you with a set of scripts which will do the conversion automatically.   While these scripts have been tested with multiple filesystems and in multiple ways, there could always […]


How to make a RAID1 Linux system boot from either drive

By jbayer - Last updated: Tuesday, November 2, 2010

There is a problem with Ubuntu and other distributions when you set up a system with a RAID-1 setup.  The installer only installs Grub to the first drive.  If the first drive fails, then even if all your data is on the second drive you won’t be able to boot from it. The following script […]