Nagios XMPP Notifications for GTalk

While improving GNOME’s servers Nagios Notifications,  I ended up working on a nice way to notify the relevant folks through GTalk in case something could go wrong on any of the hosted services. Looking around on the web, I found Seth Vidal’s script, modified it to suit my needs and made it working with GTalk, here’s the result:

I, then, added the command definitions on the relevant Nagios configuration file:

And in the end on contacts.cfg:

When done just reload the configuration files with:

Enjoy your new XMPP Nagios notifications!

Update: if you don’t want the script to store your username or password, you can use the following modified script together with a nice config file like this one:

Then you can invoke xmppsend this way:

Share on Google+0Tweet about this on TwitterShare on Facebook0Share on LinkedIn0Digg thisShare on Reddit0Share on StumbleUpon0Email this to someone