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
9 comments:
Very nice. Is it going to be published? :-)
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.
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
I can't make it work. The script returns no error but no message is received. Any idea?
Sam, I have the same issue. No errors, no message.
I dont get the pop up either, script runs and nothing. Tried spark and pidgin...no dice
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.
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!
The software needed is "libnet-jabber-perl" in debian.
sudo apt-get install libnet-jabber-perl
Post a Comment