Skip to main content

A nagios-notification-jabber documentation

GitHub Coveralls License Version Supported Python version Package format Python wheel support Package status

nagios-notification-jabber is a Nagios-plugin that send Nagios notifications via jabber

Installation

  • Obtain your copy of source code from the git repository: $ git clone https://github.com/vint21h/nagios-notification-jabber.git. Or download the latest release from https://github.com/vint21h/nagios-notification-jabber/tags/.

  • Run $ python ./setup.py install from the repository source tree or unpacked archive. Or use pip: $ pip install nagios-notification-jabber.

Configuration

  • Read and understand Nagios documentation.

  • Create Nagios commands definitions like this:

# "host-notify-by-jabber" command
define command
{
    command_name    host-notify-by-jabber
    command_line    /usr/bin/notification_jabber.py -r $CONTACTPAGER$ -m "Host '$HOSTALIAS$' is $HOSTSTATE$ - Info: $HOSTOUTPUT$"
}

# "service-notify-by-jabber" command
define command
{
    command_name    service-notify-by-jabber
    command_line    /usr/bin/notification_jabber.py -r $CONTACTPAGER$ -m "$NOTIFICATIONTYPE$ $HOSTNAME$ $SERVICEDESC$ $SERVICESTATE$ $SERVICEOUTPUT$ $LONGDATETIME$"
}
  • Add to your contact definition option pager with your Jabber ID value and add to service_notification_commands and host_notification_commands contact definition options service-notify-by-jabber and host-notify-by-jabber values respectively.

  • Copy /usr/share/doc/nagios-notification-jabber/notification_jabber.ini to /etc/nagios with your nagios bot credentials. Attention: nagios user must have notification_jabber.ini read permissions.

nagios-notification-jabber is able to send message to MUC rooms without any additional configuration, just specify MUC room ID as a notification recipient. Also yu can specify notification resource just by adding it to JID in the config file: jid = nagios@example.com/bot

Licensing

nagios-notification-jabber is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. For complete license text see COPYING file.

Contacts

Project Website: https://github.com/vint21h/nagios-notification-jabber/

Author: Alexei Andrushievich <vint21h@vint21h.pp.ua>

For other authors list see AUTHORS file.

Metadata

Release files for nagios-notification-jabber 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nagios-notification-jabber 1.1.0
File Size Uploaded
nagios-notification-jabber-1.1.0.zip 27.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nagios-notification-jabber 1.1.0
File Interpreter ABI Platform
nagios_notification_jabber-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 60.4 kB

Release files / nagios-notification-jabber-1.1.0.zip

Download URL nagios-notification-jabber-1.1.0.zip
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
291d98a3de780279765098d792370ed8dfb1189fd3b3ad1adbcea2f4e5b26a62
BLAKE2b-256 checksum
How to use checksums
224955c5bbb6c60cad783326274090ba761a88458dd0dedd332366fcd2905ee0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release files / nagios_notification_jabber-1.1.0-py3-none-any.whl

Download URL nagios_notification_jabber-1.1.0-py3-none-any.whl
Size 33.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f1ffe1ddf75353f9f8ba9b5c7c3b506239fc95421299fb95608b22d3f97e5534
BLAKE2b-256 checksum
How to use checksums
5f2e47f3d650e72fac7513a81d59f5e2578a1b9a3961cca3946234d2cfc7b5ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.8.0

2 release files

0.7.3

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.8

1 release file

0.6.7

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page