Archive for the ‘Comp Stuff’ Category

check_raid_amrstat Nagios plugin

Friday, July 30th, 2010

We recently recycled a Dell Poweredge 1750 equipped with a PERC 4/Di RAID controller into my realm and have it running FreeBSD 8. The PERC4/Di is a rebranded LSI MegaRAID controller and uses the amr driver under FreeBSD.

There is an appropriately titled “check_raid_amrstat – Dell AMR PERC4 FreeBSD” plugin already on Nagios Exchange and Monitoring Exchange, but as usual I can’t seem to be content with some other people’s code.

I cleaned up the code a bit. It is a bit more in sticking with the plugin writing guidelines. Presents a bit more info than the original in a more compact format, with output similar to my MegaRAID SAS plugin. Nothing radical at all, but I like it better and present it here in case you want to see an alternative.

iPad VGA Adapter

Wednesday, May 19th, 2010

Work bought me an iPad, which is great. My goal in acquiring it was to use it as a substitute for my work-issued MacBook that gets carted in to the office every now and then when I need to run some mobile presentations and such. One of the things that had me sold on this potential was that Apple sells a VGA adapter for the iPad that connects via the dock port.

iPad VGA adapter

So today we had a meeting at work and it was my big chance to show off how well this plan was work. I hook the iPad up to our projector with the VGA adapter. Oddly, I don’t get any mirrored display.

Change around inputs on the projector looking for signals. Still nada.

Go into iPad settings to see if any new option has popped up recognizing the attached bit of hardware. Also nada.

Google around a bit and… oh damn. According to Apple (Article HT4108):

The iPad Dock Connector to VGA Adapter can play content to a VGA display when using the following apps:

  • Videos
  • Photos—Slideshow playback only
  • YouTube
  • Keynote
  • Safari—Video content on webpages

So until I actually start playing a video, photos, etc. I get no output at all from the VGA. I can’t browse websites in Safari over VGA, so I can’t, for example, use the iPad to go through our help desk ticketing system during the weekly group meeting. Can’t demonstrate application configuration on the big screen, etc etc. I generally like Apple hardware, and I really want to like this and for it to work, but it has just turned into a big failure and disappointment.

I understand that Apple might want to, under some circumstances, restrict your video output so you aren’t arbitrarily dumping licensed content out over a digital connection. Instead with this they are limiting you so tightly over what they will allow you to output, for no real explainable reason. Wouldn’t it be easier to just have the VGA output be universal and then restrict certain flagged content (which they already do) if you try to push it out over the adapter?

I can only come up with two possible explanations for why this is done this way:

  1. The iPad is running an OS that is still fundamentally thinking it is dealing with something more along the lines of an iPod Touch, and that all that there really is worth displaying on a big screen is videos and photos.
  2. If you were able to hook up the iPad to an external display and use a Bluetooth keyboard on it, you would pretty much kill some large percentage (lets just say 20%) of the market for notebooks like the MacBook Air. So cripple the iPad to force consumers to move further up the foodchain to get full video out capability.

Hopefully this is just the first case and things will improve with the next OS release. I really do like my iPad, but this feature has pretty much killed a large part of its intended functionality.

Nagios Plugin Repository

Thursday, July 2nd, 2009

It seems I have missed out on some drama related to Nagios recently. I went to take a look at the listing for the Nagios plugins I have put out there on nagiosexchange.org only to discover that they have now rebranded themselves as monitoringexchange.org and are run by a group that is now dedicated to a fork of Nagios called Icinga. How confusing… and now there is a new plugin site at exchange.nagios.org.

I have no clue about which of these two sites is going to end up being the de facto source for Nagios plugins, but I have claimed what is mine on the Nagios branded one and will probably maintain things in parallel for the time being. Here are the links there for my LSI MegaRAID SAS (Dell PERC5 & PERC6) plugin, check_megaraid_sas, and my Perforce license plugin, check_p4_license.

Nagios plugin for Perforce license

Wednesday, April 8th, 2009

I feel like whatever code I write, no matter how simple or seemingly insignificant, eventually ends up becoming useful to someone else at some point. So here is a quick Nagios plugin that I whipped up today, check_p4_license.

I have a server running Perforce at work and it seems that every other year I have managed to not realize the license needed renewing until someone said to me, “Hey, is there any reason Perforce isn’t working?”

This year my spider-senses started tickling earlier on and I caught it in time, but I told myself I needed to count on more than just an odd sense of doom and foreboding in April. So I wrote a quickly Perl script that calls the Perforce p4 CLI tool and looks at your server’s license info and gripes back to you if it is going to be expiring any time soon.

I have also placed this plugin up on NagiosExchange, because I have found that it is better for me to do so earlier on than to have someone else find my stuff and upload then abandon it.

Apache Proxy for Filemaker 10 Advanced Server IWP

Monday, April 6th, 2009

This isn’t any major ground breaking discover, not even a minor hack. What it is, however, is a simple solution to a question that didn’t  turn up any good results when I tried to Google it earlier on.

The Problem: I have a user with a Filemaker database that they want to quickly share via the Internet, which is generally easy to do using the Instant Web Publishing (IWP). I don’t, however, want to have the Filemaker server exposed through the firewall. I want to be able to use an Apache server I have sitting on the edge of the network to proxy for it instead.

(more…)