experiments with go and nagios 2

Posted by peter on October 25, 2011

I’ve been working on contract at the goog of late, and had the opportunity to play with Go. I ended up liking it a lot more than I expected to, so I decided to rewrite a few small infrastructure pieces/shunts that were bothering me in go.

First is a replacement for ganglia-graphite.rb that runs about 15x faster. Our central gmond machine couldn’t keep up using rexml-based ganglia-graphite.rb, and was burning all its available cpu time spitting out data every 90 seconds or so.

Second piece is a replacement for nagios’ ncsa which accepts check results (with multi-line output and as much perf data as you please) as json or protobuf. There are certainly other replacements out there, but this one is mine. I think it sucks only a little bit. I’m maybe letting this one go too early, as I’ve got plans to extend it to replace NRPE as well (a piece of nagios that also sucks), but I’m using it right now to fill a need to return a large number of passive informative checks from a few single hosts.

Both are up on my github page (the former here and the latter here). They’re a bit rough; I’m both new to the language and a shitty coder, so dragons, etc etc. Let me know if you find them useful, or alternately if you find them worthless.


Use this link to trackback from your own site.


Leave a response

  1. ebc brake pads e46 bmw m3 Mon, 15 Feb 2016 10:46:28 UTC

    It’s a shame you don’t havᥱ a donate button! Ⅰ’ⅾ definitely donate to tҺіѕ fantastic blog!
    I guess fߋr now i’llsettle fоr
    bookmarking аnd adding yοur RSS feed to
    mү Google account. ӏ ⅼⲟⲟk orward tο fresh updates ɑnd ԝill taok about thiis blog with mʏ Facebook ցroup.
    Chat ѕoon!

    Feel free tо surf too mу blog
    :: ebc brake pads e46 bmw m3

  2. pandora jewelry sale Sat, 04 Jun 2016 11:47:11 UTC

    pandora jewelry
    pandora jewelry sale [url=http://www.pandorajewellerysales.co.uk/en/]pandora jewelry sale[/url]