Featured »

March 2, 2022 – 2:00 pm

Books have been written on the subject of awk and sed. Here’s a small sample of commands I put together over the years that are useful for everyday system administration tasks. Most of these tasks …

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Archive by Category

Articles in Applications

Copying a VM between VCenters

November 12, 2016 – 6:13 pm
cat_001

I had a little task: clone an operational VM from one VCenter to another. Normally, for such a task I would use the Standalone Converter. Unfortunately, this time I ran into an annoying SSH key …

Monitoring Solr Cores

November 1, 2016 – 10:50 pm
binoculars watch security rifle gun

The Cloud tab of the Solr Web UI is convenient, but not for monitoring purposes. Just like you, I hate XML and parsing it from shell is more convoluted that it needed to be. But …

Fixing NIC Name in Cloned VMWare Linux Machines

June 28, 2016 – 12:32 pm
network switch

A suspected bug with certain versions of VMware ESX causes cloned Linux VMs to obtain a sequentially-number NIC. For example, if the parent VM had eth0, the clone will have eth1, and the clone of …

Kodi Volume Control Stops Working

May 22, 2016 – 1:01 am
kodi-14-helix-addons

All of a sudden, when using the remote (either radio or IR), Kodi sound controls stop responding. The volume level does not change and the mute button doesn’t work. These are possible symptoms of an …

VMWare VMDK Locked Error

May 21, 2016 – 10:27 pm
reverse_ssh_tunnel

So, being a Unix admin on-call for the week, I just spent half of my Saturday fixing a dead Windows VM. Very annoying. The best I can tell, the issue occurred during the snapshot operation. …

Monitoring NetBackup Daemons

April 27, 2016 – 9:25 pm
tape dlt backup

Here’s an example of a script you can use to monitor NetBackup server daemons in a Linux environment. The main difficulty with keeping track of these services is that there are so many of them. …

Parallel MySQL Queries

January 19, 2016 – 12:38 am
mysql_0001

Unlike Oracle, MySQL has no support for parallel SQL queries. A bummer for sure, in light of all the awesome multi-coreness we enjoy these days. There’ve been some attempts (1, 2) to get around this …

Tuesday Morning Rant

October 27, 2015 – 11:27 am
centos_linux_0003

So I just got around to installing CentOS 7. What a pile of shit with bugs all over it. The installation GUI completely messed up network configuration. On the first try, the network config I …

Arthemia jCarousel Number of Posts

September 4, 2015 – 3:45 am
wordpress_0001

This is primarily just a note to myself on how to change the number of visible items in the jCarousel implementation for the WordPress Arthemia theme. Recently I finally updated to the current version and …

Raspberry Pi 2 OpenELEC Player

June 10, 2015 – 4:37 pm
raspberry_pi_openelec_player_0001

Just some quick documentation, mostly for myself, but feel free to try. This is a Raspberry Pi 2 with OpenELEC. The design is intended for overclocking, good wireless performance, and convenience of dual remotes. This …

Saving Postfix Messages

June 3, 2015 – 3:08 pm
postfix_logo

Sometimes for testing purposes you need to save all messages going through Postfix active queue. There are a couple of ways of doing this.

Verify Email SSL Certificate from CLI

May 8, 2015 – 10:36 am
postfix_logo

Just a quick reference for validating SSL certs on mail servers. This is not something I have to do often, but when the need arises, I find myself googling the answer every single time. So …

A Better Mysqlcheck Script

April 2, 2015 – 10:44 am
SQL_query

Mysqlcheck is a stand-alone MySQL utility for checking, optimizing and repairing tables. It’s a useful tool that allows automating the usually time-consuming database maintenance tasks. One of the advantages of mysqlcheck it is ability to run …

Using Pflogsumm Postfix Log Analyzer

December 4, 2014 – 12:29 am
postfix_logo

Pflogsumm is an oldie but a goodie. It’s a Perl script that sifts through your Postfix server maillog and provides you with a neat summary of events and some statistics. This information can be useful …

Visualizing Apache Logs with Logstalgia

December 4, 2014 – 12:01 am
Visualization

The Logstalgia is a cool graphical utility for visualizing the Apache access_log files. The practical value of Logstalgia is debatable, but it’s entertainment value is not in question. The managers and NOC operators can stare …

Block WordPress Attackers With IPTables

September 23, 2014 – 3:56 pm
apache_logo

After installing LogStash, I noticed server load went from around 1.2 to 50+. This was cause by a brute-force attack against WordPress wp-login.php from some IP in France (of all places). While LogStash should not …

PHP Unable to allocate memory for pool

September 9, 2014 – 10:57 pm
apache

The following error may be found in /var/log/httpd/${domain}/error_log when APC memory is set too low: “PHP Warning: require_once(): Unable to allocate memory for pool”. APC is Alternative PHP Cache. You can check the version of …

Disable Formatting When Pasting into Outlook

June 24, 2014 – 9:25 pm
outlook_001

By default, Outlook will preserve source text formatting during copy/paste operations. At times this can be very annoying, especially when composing emails of technical nature. There’s a good chance your email will end up looking …

Installing GoAccess on CentOS/RHEL

June 24, 2014 – 11:02 am
goaccess_01

GoAccess is a simple but useful “top”-like CLI utility giving you a quick overview of the Apache access_log entries.

Searching Log Files

April 18, 2014 – 4:40 pm
postfix_logo

This is a quick example of finding the first and last occurrence of an event in the log file. This can be useful for determining the service outage window and for general troubleshooting. In the example below I am looking at the PostFix maillog file, trying to figure out the duration of the problem I’ve been having with one of the mail relay servers.

Installing CentOS 6.x From USB

January 16, 2014 – 12:23 am
computer frustration

If at all possible, don’t do it. Find a blank DVD-RW and burn the ISO file. Most current Linux distros can be easily put on a USB stick using freely-available utilities and installed without a hassle. CentOS is not one of them. It would appear, CentOS was designed specifically to make installation from a USB stick a professional challenge for a seasoned sysadmin.

Searching Large Database Tables

December 9, 2013 – 9:19 pm
dump truck

Recently I ran into a little problem: I needed to make a simple Web UI allowing users to search a database table containing a copy of the Postfix maillog for quarantined mail addressed to them. …