public
Description: Nagios Ruby Script to Send Notifications via Jabber
Homepage:
Clone URL: git://github.com/rvalente/notify_via_jabber.git
name age message
file README.markdown Loading commit data...
file notify_via_jabber.rb
README.markdown

Introduction

This is a ruby script that can be used with Nagios to send notifications via Jabber. I am planning on supporting a persistent connection to Jabber to allow for communication back to the script to get the last notification, etc.

Installation

This script requires the following gems - xmpp4r

Place this script in

$PREFIX/libexec/notify_via_nagios.rb

Then you will want to add a couple lines of configuration to nagios, for example...

define command {
    command_name    notify-service-by-jabber
    command_line    /usr/local/nagios/libexec/notify_via_jabber.rb $CONTACTADDRESS1$ "$HOSTNAME$/$SERVICEDESC$ is $SERVICESTATE$" "Additional Info: $SERVICEOUTPUT$"
}

define command {
    command_name    notify-host-by-jabber
    command_line    /usr/local/nagios/libexec/notify_via_jabber.rb $CONTACTADDRESS1$ "$NOTIFICATIONTYPE$: $HOSTNAME$ is $HOSTSTATE$" "$HOSTOUTPUT$"
}