Skip to content

Recent Articles

19
Mar

SSH Agent Issue - Could not open a connection to your authentication agent

In order to add a key to your ssh-agent, you need to load the agent first via eval

eval `ssh-agent -s`

After this just run ssh-add and you're set.

Read more
04
Mar
Increase RAM usable by Couchbase Server

Increase RAM usable by Couchbase Server

Couchbase is a caching system that is scalable across many clustered nodes. In the event that your buckets need more RAM, you need to ultimately rmeove the exisiting bucket and increase the couchbase servers total RAM.

Read more
04
Mar
Spacewalk 2.1 Released - Images / Screenshots

Spacewalk 2.1 Released - Images / Screenshots

Spacewalk 2.1 was released today. It includes a new WebUI that should simplify the use of Spacewalk. I feel it looks a little better but does not provide enough increase in functionality.

Read more
19
Dec

Nagios Client NRPE: check_mailq - CRITICAL: Error code 78 returned from /usr/bin/mailq

check_mailq was not working properly. tailing the /var/log/maillog tells me that the /var/spool/mqueue folder is not readable by anyone but root. I made it able to be read by any process running on the system.

Read more
19
Dec

Nagios Client NRPE: check_smtp CRITICAL - Socket timeout after 10 seconds

My nagios client was having issues after a few package updates. About 10 services would report properly for NRPE, except for check_smtp. After lots of checking around the net, the answer was in the /var/log/maillog.

Read more
12
Dec

pgtune for spacewalk server

My Spacewalk 2.0 Server has been working just fine, aside from viewing the systems all at once. The issue appears to be hanging SELECT queries that will idle for about 30 seconds while the systems are being organized into a list(aka just clicking "All Systems" in WebUI). I wanted to give a good read and read/write test because most of the problem is while doing reads. The read write is just for good measure. Appears to be about 10x faster in read only scenario.

Read more
06
Dec

TLS for Sendmail SMTP

I grabbed this article from "netguy.org". As he states, it's hard to get a correct writeup.
http://www.netguy.org/wordpress/?p=299

1. Install openssl-perl:
yum -y install openssl-perl

2. You need to edit the CA.pl file. This was a common area of errors since the instructions for the edit were WRONG. Rather than screwing around with diff files, you just need to make the following changes (copying the existing /etc/pki/tls/misc/CA.pl to /etc/pki/tls/misc/CA1.pl)

Read more
07
Nov

Mount CDROM in ESXi Shell 5.0,5.1,5.5 - Super Micro PDSBM LN2+

I needed to mount a CDROM drive in order to grab older NIC drivers for my SuperMicro PDSBM-LN2+ Motherboard. It has 2 Intel 82573L Gigabit Ethernet Controllers onboard. VMware stopped support for these as of ESXi 5.0. This requires using esxcli software install vib commands in order to roll back the VMware driver bootbank to an older VIB for the Intel e1000e NIC driver. Given that my system has two onboard NICs and no room for expansion, I cannot mount anything over the network to grab the drivers. A chicken and egg scenario. CDROM it is!

Read more
29
Oct

Using 2+ types of bonds on a Centos 5/6 machine

In a previous posting, I laid out the configuration for a single bond on a centos5/6 machine. This configuration needs to change to accomodate multiple network bonds, especially when using two different modes for the bonds. If you do not change the layout and simply add more lines to the /etc/modprobe.d/bonding.conf config file, you will get the same mode applied to both bond interfaces.

Read more
02
Oct
Bacula - Cannot backup Director SQL Catalog

Bacula - Cannot backup Director SQL Catalog

You receive BeforeJob: Can't find your catalog (MyCatalog) in director configuration on your Bacula Director backing up it's SQL Catalog

Read more
30
Sep

Nagios Client NRPE: Unable to read output

On a CentOS 6 machine, you may need to install a few packages in order for nrpe to properly execute remote commands.
Issue:

NRPE: Unable to read output

Run a command that utilizes the local NRPE

Read more
18
Sep

Add self signed CA to Java keystore for TLS/SSL

If you create your own Certificate Authority, you face the hassle of trusting the certificates for authentication. The Java keystore requires a manual import of your CA.

Locate the keytool for your instance of jre

Read more
18
Sep

Replace or Remove a line of text with sed

Replace or Remove a line from a text file using sed. This is helpful when running a script or program that needs to manipulate a file rather that echoing it to the end.

NOTE: Using sed -i over a symlink will replace the symlink with the actual file -- thanks to mxs57 as noted in comments

Replace a line with sed

Usage: sed -i 's/*old line of text*/*new line of text*/g' */config/file/location*

Example: disabling SELinux on a CentOS 5/6 system from the command line:

Read more
08
Sep
Migrate Spacewalk Server with Postgres DB

Migrate Spacewalk Server with Postgres DB

Here is a way to migrate your existing Spacewalk installation to a new server using the postgres dump and import tools. A lot of the setup time for a multi distro spacewalk server is in the repository adding and syncing. This will recreate the repo entries and match them with your software channels. The data sync for /var/satellite will occur shortly after. You can also use this as a procedure to backup and restore your postgres DB with spacewalk.

Read more
08
Sep
Nagios Plugin: Check pfSense gMirror status

Nagios Plugin: Check pfSense gMirror status

Grab the status of your gmirror and report it back to Nagios. This plugin runs in a standard shell as the bourne again shell is not present in pfsense.
Download Plugin : Click here
Published to Nagios Exchange : Click here






Read more
04
Sep
Spacewalk Client Error - xml.parsers.expat.ExpatError

Spacewalk Client Error - xml.parsers.expat.ExpatError

You receive "xml.parsers.expat.ExpatError" when peforming an rhn_check, rhn-profile-sync, or other spacewalk related commands. In my case, I needed to alter the /etc/sysconfig/rhn/up2date config file to reflect "https" instead of the standard http for XML related commands.

Read more
30
Apr
Migrate Spacewalk Server to New Server (on Spacewalk 1.9)

Migrate Spacewalk Server to New Server (on Spacewalk 1.9)

The spacewalk database stores all of your hard work in order to make this easy during a restore or migration. Shutdown the spacewalk services, export the db, fresh install of spacewalk server, and import existing database. A detailed explanation is seen below.

Read more
26
Apr
Jabber and osa-dispatcher no longer working -- Invalid Password

Jabber and osa-dispatcher no longer working -- Invalid Password

After a fresh installation, I still had issues with jabberd and osa-dispatcher. It turns out that each time you restart the spacewalk-service you need to also remove all of the content in the /var/lib/jabberd/db directory. I built this into the command and hope to remember this in the future for upgrading spacewalk packages, etc.

Read more
04
Feb
Top Cydia iPhone Jailbreak Apps iOS6 iPhone 5

Top Cydia iPhone Jailbreak Apps iOS6 iPhone 5

I have been patiently waiting for the iPhone 5 Jailbreak from the first day I heard about it's release. I had an A4 iPhone4 jailbroken on iOS6, so I had no real reason to move onto the new phone....aside from it's power, screen size, thinness, video/photo taking improvements, and addition of the lightning port. From time to time people want to know why I always speak of jailbreaking the device. This article covers just a handful of amazing additions to the already amazing iOS devices are capable of doing. Aside from that, it's a great list in case I lose my phone and need to start over :P.

Read more
04
Feb
Jailbreak iOS 6.1.0 iPhone 5

Jailbreak iOS 6.1.0 iPhone 5

Here are links to the iOS 6.1 jailbreak for the iPhone 5. I have rehosted the files in case you cannot receive them from the standard mirrors provided by evasi0n. I am not the creator of this jailbreak. I am rehosting the teams jailbreak files for iOS 6.1.

Read more

Pages