Friday, July 29, 2011

Nagios evolved?

Look in the near future for some info on a monitoring product I ran across a while back called Opsview.  It's a super-polished version of Nagios that looks very promising.  I haven't had a chance to get it up and running yet (hence the frazzled bit in the blog description), but plan on doing so in the next week or two.  They have released an Android app that is mated to the normal web app that looks very promising!

Stay tuned for more info...

Ever heard of grammar check?

Just saw this in an email from our MS Exchange admin.  Apparently Microsoft only makes a product with grammar check, but doesn't bother using it!

Wednesday, June 1, 2011

CA ARCServe on Ubuntu

I've been extremely busy the past few months, but wanted to throw a quick post up before I forget.  If you're unfortunate enough to have to run CA ARCServe (BrightStor or whatever else they are calling it this week), then you know what I pain it can be getting it going on Linux boxen.  The install scripts aren't the best, and I have yet to find a single version that will install without some kind of tweak to the install scripts.
I had to update the agent on my Ubuntu desktop today and as usual, it barfed.  I happened to do a quick search and ran across a great port that provided a quick fix without all the usual hack-and-slash that I usually have to perform.
Props to Nik!
How to install CA ArcServe Backup r15 Linux Agent on Ubuntu

Friday, January 14, 2011

Not ready for IPv6?

Nothing much here, but thought it might be helpful.  I had a situation this morning where I needed to disable IPv6 on a server and a quick search yielded this nugget:

How to disable IPv6 in Ubuntu 10.04 Lucid Lynx

Wednesday, January 12, 2011

The usefulness of cloud storage

You've probably heard the buzz about or at least the term "the cloud" by now, but have you given it a whirl?  I finally bit the bullet and did a bit of research the other day to see what was out there.  Being a cheapskate, I only looked for free offerings, and wound up going with Dropbox.

I decided to try them first because they offer a native Linux client, and have been extremely pleased.  They give you 2GB of free storage which is upgradable to 50GB or 100GB for a monthly fee, but they will bump you up to 8GB in 250MB increments for referring friends.  Along with the Linux client which integrates with Nautilus, they also offer Windows, Mac, Blackberry and Android clients.  I'm currently running the Linux, Windows and Android clients.  Setup was incredibly simple and the syncing is spot-on and fast.  It's already come in extremely handy providing access to files for work while I'm at home and vice-versa, as well as being able to get to them from my EVO.

One other cool feature that Dropbox has is the ability to share folders.  I'm able to give co-workers access to files while I'm out of the office from both my home PC, laptop, or phone without having to fiddle with a VPN and slow transfers to a file server on the corporate LAN.  For that matter, they don't even have to be in the office either, which is full of win in my book.

If you decide to give them a try, you and I can both get an extra 250MB by using this referral link.

Monday, January 10, 2011

This box is so 1337

I've been hovering over this MySQL server waiting for the uptime to roll...
(click on the image for a larger view)

Use Nagios? Got an Android phone?

If you're like me, you use Nagios to monitor just about anything and everything on your network.  It's a great tool to keep your finger on the pulse of your systems, so to speak, but if you rely on SMS or email notifications, sometimes they can get lost in the shuffle with everything else.  I get a lot of texts and tons of email from various processes and scripts, so the signal to noise ratio is pretty high.

I started looking for a solution that wouldn't involve creating a bunch of filters and such, which of course brought me to look for a client.  After doing a cursory search to see what was out there, I ran across two candidates, Nagroid and NagMonDroid.  I didn't care much for NagMonDroid, not to its discredit, as it looked like a fine client.  I just didn't like the interface, and Nagroid worked better for my needs.

The setup process for Nagroid was pretty simple, but I did tweak my config on the Nagios side just a bit to fine tune things.  Out of the slew of servers and devices that I need to monitor, the majority of those I would classify as "tier 2" and don't want to get a notification in the middle of the night if something goes awry.  For those systems, email is perfectly fine as it can wait until the morning.  For my mission critical or "tier 1" systems, I want something that will wake the dead at 2am if need be.  In order to make this work, I created a secondary login for Nagios (in my case user_mobile) and then created a group that contained both my primary and mobile only logins.  I then disabled all notifications for the mobile login.  This provided me with the ability to set tier 1 systems to notify my group resulting in both an email and a Nagroid notification, while tier 2 systems I configured to notify only my primary login resulting in email only.

While Nagroid has met my needs, I encourage you to check both clients out.  I've included the QR codes below that will take you to the appropriate market pages for each.


Nagroid

NagMonDroid

Tuesday, January 4, 2011

ZRM for MySQL and NFS locking

I ran into this issue a couple of years ago when we decided to implement a VTL solution for our backups.  We use ZRM for MySQL for our database backups, and it has been extremely dependable.  We were initially backing up to local storage on the backup server, but then moved our target over to a Data Domain DDR530 data restorer.  We accessed the DDR530 via NFS and took the necessary precautions regarding file locking only to still have problems backing up to the DDR530.  After a bit of digging and a minor patch to the ZRM code to disable flocks, backups worked perfectly but purges remained a problem.  All of this was due to forces at work under the hood of the DDR530 which threw a wrench in attempting to thwart locking.

Unable to get the supplied purge script from ZRM to play well with the DDR530, I set out to create a suitable stand-in.  It's nothing fancy, but if for some reason you cannot get the supplied purge process to work, feel free to give this a spin.  It will get the job done without a lot of fuss.

#!/bin/bash

##################################################
# purge-zrm-backups
#
# purges backups without file locking
#
##################################################

BACKUPDIR="/path/to/backups"
PURGELOG="/var/log/mysql-zrm/purgelog"
CURDATE=`date +%s`
TIMESTAMP="date -Iseconds"

echo "$($TIMESTAMP) -- Starting purge session" >> $PURGELOG

for buset in $BACKUPDIR/*
do
   for budate in $buset/*
   do
      KEEP=`grep retention-policy $budate/index | awk -F= '{print$2}'`
      WEEKS=${KEEP:0:1}
      TICKS=$((WEEKS * 7 * 86400))
      CUTOFF=$((CURDATE - TICKS))
      TSTAMP=`grep backup-date-epoch $budate/index | awk -F= '{print$2}'`

      if [ "$TSTAMP" -lt "$CUTOFF" ]; then
         echo "$($TIMESTAMP) -- | Purging $budate" >> $PURGELOG
         rm -rf $budate 2>&1 &
      fi
   done
done

echo "$($TIMESTAMP) -- Finished purge session" >> $PURGELOG

exit 0

Testing.... 1, 2, 3...

Well, if you stumbled in here, thanks for dropping by.  I've been working with Linux and Unix since 1995 and have picked up a few interesting things along the way (as well as found lots of things not to do).  For the past few years I've been working a lot on cross platform integration between Linux and Windows systems so don't think I've fallen and bumped my head if you see a stray post about the evil empire in here.

Hopefully I can share some pointers that will save you some time.  Feel free to comment on anything you see here as there's always room for improvement.