This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README.markdown | ||
| |
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$"
}








