Sensu to Google Cloud Messaging plugin

Mar. 23, 2015

In the past 6 months I’ve been playing around with Sensuapp, for the ones of you who dont know, it’s a montoring framework, much like Nagios/Icinga and Zabbix, I’ve been using Nagios/Icinga and Zabbix for quite a while, but I never really quite liked it as the Interfaces are not so good looking and the configuration tend to be hard to work with.

Welcome Sensuapp!

Sensuapp is written in Ruby, it has a framework for creating plugins, handlers etc. It uses AMQP to talk with the clients, and the alerts are in json.

Due to the summer vacation I have some time to work on things like hacking on random projects, So i created an handler that lets you send Notifications to Google Cloud Messaging to receive alerts when a service is failing, a disk is full, memory is full or whatever you like.

The code can be located on my git list

The configuration files in Sensu are in Json, this is the configuration file for GCMalert:

{ “gcmalert”: { “apikey”: “A”, “registration_ids”: “B” } }

s = "Python syntax highlighting"
print s

Simple Android app showing the alerts:

gcm

comments powered by Disqus