Articles in Applications
Copying a VM between VCenters
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
GoAccess is a simple but useful “top”-like CLI utility giving you a quick overview of the Apache access_log entries.
Searching Log Files
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
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
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. …
Latest Comments