Introducing sensu-shell-helper!

The Problem The barrier to writing Nagios checks is high. I dare say very high. You have to think about check intervals, host groups, service groups, config files, etc. But, I know my servers are not behaving, if only there was a way to check them! They run commands for me all the time. In the worst case they fail and no one knows. The best case is that they end up in my cron spam folder….

Saying Goodbye to Wordpress

It’s Been a Great Ride There is no doubt that Wordpress is a great piece of software. As much as people love to hate on PHP, it runs a lot of the internet. I’ve been running Wordpress personally and professionally for years. It only gets better. I was only hacked once :) Rethinking What I Need Since moving to a Low End Box, my resources have been tight. Even on a tuned system, I can’t run much more interesting things than my Nginx+PHPfpm+MySQL.

Sensu Reports in your Motd with Puppet!

Intro Sensu is a pretty cool monitoring framework. The authors designed it to be configured by a configuration management system from the beginning. Check out how easily I can make it put a report in my motd with a little bit of python and puppet. The Report Script Sensu’s API is super easy to work with. For this I will be using the Events endpoint. Here is a quick script to get the events for a host (gist):

Managing DNS Automatically with Puppet

Why So you have a decent amount of things configured in Puppet. Great! Are you finding that you have to manually update your DNS entries when things change, like when new hosts or added, or additional services are created? Why? Your DNS zone files will forever be out of date, waiting for humans to update them. Just say no. Puppet already knows what the ip addresses and hostnames of your servers, why not take advantage of that existing data?

Getting Started With Sensu Using Puppet. For Real.

Nagios. So familiar. I feel like I’ve run Nagios at every job I have ever had. Talk to most ops people, even at really big places, and they will probably admit to using it. Puppet’s exported resources takes away some of the pain, but sometimes I think to myself, there must be a better way to do this. Sensu might be that better way. Let’s try it out, but gosh, I am SO lazy.

Dropbear with Mosh on a Low End Server

I love my low end boxes. I also love mosh. Low end boxes usually are tight on resources, so Dropbear is often used as a lightweight ssh server. Mosh is mostly tested with openssh-client/server, so I think there are some bugs. But it can work, just make sure: You are using the same version of mosh on the server as you are on your client. (otherwise they may not support the same command line options)

Goodbye Intel - My Favorite Commands

Working at Intel has been a great experience. I wish I could have stayed longer, but in the end we decided to part ways. During my stay I learned lots of stuff. I would like to boil my experience down to my top Linux commands. The List git: Lots of git. syscfg: Managing bios settings from within Linux. Nice. (Intel platforms) setupbios: More bios settings from within Linux. (Dell platforms) puppet: I actually enjoy manually running puppet.

Rebuilding Packages for ARM (or any other arch)

Sometimes there are packages out there that don’t come in your cool new Architecture. In my case it is ARM, and the package I wanted was Puppet. Here is how to rebuild source packages the cool way. Add the Puppet repo so you can get fresh source packages cd /tmp # Add the repo, even though it may not have arm binaries... wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb dpkg -i puppetlabs-release-precise.deb # Get dependencies.

An Overdrive Pro Connecting on OpenWrt

Have a fancy FreedomPop Overdrive Pro? Want to hook it up to your OpenWrt based router to use as a backup (or primary?) internet connection? Lets do it. Plug it into your router via USB. Then run: opkg install kmod-usb-net-cdc-ether Run dmesg and it will report which eth device came up. Mine shows up as “eth1”. Now make eth1 your “wan” interface: uci set network.wan.ifname=eth1 uci commit reboot Whoa.

A Team Fortress 2 See ‘n Say!

Hopefully Valve will offer me a job instead of suing me? :) Teardown [gallery ids=“991,992,993,994,995,996,999,1001,1002,1000,1003,997”] Parts Many See N’ Says to destroy (I burned through 3) An Arduino (yes, because I’m a lazy noob) Wave shield Some sort of ISP programmer Speaker / Switch / Hot-glue / Resistors / etc How It Works A user pulls the handle, activating the normally-open switch and powering the arduino