Thursday, May 24, 2007

Jabber Dabba Do!

OK, So in between taking the kids to an Intellectual day out (The new Barnstormer's ace BTW) I have registered a new gmail account for uki.scotgrid.glasgow and played with Net::Jabber on svr031. Took quite a few Perl dependancies to get it working, as you need the IO SSL working for when google switches to TLS.

The supplied nagios "notify_via_jabber" doesn't work out of the box, but I have a simple test script by Thus0 I lifted from the web that works fine - Now all I need to do is rewrite the notify script with the correct incantations from the test one.

Plan is then to have Jabber notifications for certain classes of nagios alert.

UPDATE: Success! added a new test on the disk servers as I knew there were some non-dpm boxes amongst them. Screenshot of gaimPidgin popup below

9 comments:

kylegordon said...

Very nice. Is it going to be published? :-)

Ewan said...

Rather than relying on the (IME occasionally quite flaky) google talk jabber system, would it make sense to run a local jabber server, or indeed set up a jabber.gridpp.ac.uk; it could be useful for lots of other things.

Elwell said...

Kyle - Yes, as with most of the work I've done for GridPP - This one's at http://www.gridpp.ac.uk/wiki/Nagios_jabber_notification but I generally dump misc stuff at http://www.gridpp.ac.uk/wiki/User:Andrew_elwell

sam said...

I can't make it work. The script returns no error but no message is received. Any idea?

PlaneShane said...

Sam, I have the same issue. No errors, no message.

Derek said...

I dont get the pop up either, script runs and nothing. Tried spark and pidgin...no dice

DaveF said...

Make sure to add your contacts gchat name as "pager" in your contacts.cfg for each contact. Otherwise it won't error but nothing will happen.

Jason said...

Just found this, and very useful, too.

However, I'm going to be modifying a bit, as you can only send from / the same server (so, if your nagios logs onto gmail.com you must also do so) given I run my own Jabber server(s) at home and work, this is a limitation, but thanks. it does work well with my test accounts!

isaaclw said...

The software needed is "libnet-jabber-perl" in debian.
sudo apt-get install libnet-jabber-perl