Jaime Gago Condensing Information Systems From the Vapor Of Data

7Apr/140

Monitor Sensu Server with Pingdom

If you found yourself in a "who watches the watchmen" situation and need to monitor your Sensu server, here is a solution with Pingdomsensu_logo

Create a Pingdom http check that points to the /health end point ( you'll need to enter your sensu dashboard auth in user name/password in optional settings)  AND select in optional settings/request headers "Accept" and enter this in the empty field

*/*

 took me a couple of hours and some tcpdumping to find this out so hopefully it saves some time to other folks out there!

8Mar/140

Create MCollective plugin native OS packages with…MCollective!

Today I wanted to install the MCollective Process Agent plugin and so I searched to no luck for a native OS package for ubuntu (ended up filling a 500px-Panneau_marionette.svgticket with puppetlabs). I was on my way to do some effing package making  but some guy on IRC ("rc" you know who you are ^^ ) saved me a lot of time with a single mco command. It turns out MCollective can create native os packages for its plugins, and since I haven't found any doc on the topic I thought I document it here.

13Jan/140

Integrating PagerDuty with Sensu

sensu_logo

I'm currently implementing a monitoring pipeline based on Sensu for the monitoring data routing and Graphite for the actual storage and calculations, it wouldn't be complete without a notification systems to it so I thought I would document using PagerDuty at the end of the pipe.

There isn't much to it but the information is spread and not always straight forward (at least it wasn't to me) so hopefully this help other adepts of monitoring love!

19Oct/130

Dynamic Guest(RHEL6 and cousins)/Host(Os X) Time Zone Sync in Vagrant (VirtualBox Provider)

If like me you're in charge of the vagrant base boxes supporting a team with folks in different time zones you might find this hack useful. I use it to bring the time zone of a Screen Shot 2013-03-30 at 6.07.36 PMRHEL 6 or cousins (tested on CentOS 6.4) guest VM to the same as an Os X host (tested on 10.7.5) in Vagrant, VirtualBox provider environment. I'm leveraging an Os X CLI utility  with a shell provisioner but it shouldn't be too much of a deal to refactor for Ansible/Puppet/Chef provisioner. I'm pretty sure there are better ways of doing this, so if you have a more elegant solution please describe it in the comments!

15Oct/130

Plain Text Based Configuration Files Management with Ansible

Screen Shot 2013-03-30 at 6.07.36 PMAnsible, the configuration management and command orchestration tool I use currently, has several modules and ways one can use to push plain text based configuration.  I got a lot of help from the Ansible community, the guys on IRC are quite a model when it comes to the S of CAMS and I thought I would share back the knowledge I've gained.

28Apr/130

Ship Apache HTTPd Logs to Graylog2 Via Rsyslog

Loch_à_plateau

This is a quick recipe and a list of resources on how to ship apache logs to a graylog2 server using rsyslog which is the default system logger on CentOS 6. Tested on CentOS 6.4, Graylog2  0.9.6, Apache HTTPd 2.2.15.

By the way if like me, before I wrote this post, you are wondering about the origin of using the word that commonly describes a fresh cut piece of a tree for "our" IT logs then click on the image (talking root cause here), and don't forget to donate to wikipedia!

22Feb/120

VI and VIM:Automatic Headers For Shell Scripts

If you landed on this page chances are you already know what an automated header is, if not this post about how to create/edit shell scripts with VI/VIM and have an header automatically created and updated with timestamp on each edit.

I'm writing quite a bit of shell scripts using VIM lately and as a lazy system folk (main skill required by the trade ) I looked into a way to automate my headers. I found this post  on thegeekstuff.com (plenty of good resources, just don't like the spamy ads) but the example is for writing in C and /me != got C?. So I thought I would share here the simple modifications I did to original tutorial to have automated headers for my shell scripts:

29Mar/110

Teach Yourself Python

I originally became interested in Python via Google folks public communications, after that I kept reading about it in many "Systems Oriented" blogs. Long story short I decided to learn Python and in agreement with my autodidactic nature I started the free resource hunting while puting my google-fu to work, here's what I found.

9Dec/094

Modify Default Printing Presets in Os X (10.5 & 10.6)

There you are with some customized printing presets for your fancy new printer and yet for some reason every time you open a new printing box the one showing up by default is not the want you wanted : 2000px-Gnome-dev-printerfail

So you looked all over the OS, read some forums, used your Google-Fu and finally got to this post. Search no more the answer is here as seen on TV!

5Dec/090

Highlight Code WordPress Plug In

I realized that I was often going to have code within a post (I have some bash scripts and my iptables rules ready to publish), thus I looked for a wordpress plugin to make it a little easier to read and/or download without interfering with worpdress posts code.Wordpress-logo

After reading this post I decided to go with the Easy Google Syntax Highlighter by Nick Burlock a fork of Alex Gorbachev original Google Syntax Highlighter. Still reading the documentation here and here but it looks like it's exactly what I was looking for, WordPress FTW!

edit: Since I use the Lightword Theme by Andrei Luca I modified my style.css according to the plug in FAQ and it works perfectly as you can see in this post

Filed under: Applications No Comments