Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nagios-notification-jabber-1.1.0.zip (27.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nagios_notification_jabber-1.1.0-py3-none-any.whl (33.1 kB view details)

Uploaded Python 3

File details

Details for the file nagios-notification-jabber-1.1.0.zip.

File metadata

  • Download URL: nagios-notification-jabber-1.1.0.zip
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for nagios-notification-jabber-1.1.0.zip
Algorithm Hash digest
SHA256 291d98a3de780279765098d792370ed8dfb1189fd3b3ad1adbcea2f4e5b26a62
MD5 9da81f43dae242bd9ceb858ee75bbba9
BLAKE2b-256 224955c5bbb6c60cad783326274090ba761a88458dd0dedd332366fcd2905ee0

See more details on using hashes here.

File details

Details for the file nagios_notification_jabber-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: nagios_notification_jabber-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for nagios_notification_jabber-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1ffe1ddf75353f9f8ba9b5c7c3b506239fc95421299fb95608b22d3f97e5534
MD5 521c1c5e18d1b0aafeaf101d6e34ea09
BLAKE2b-256 5f2e47f3d650e72fac7513a81d59f5e2578a1b9a3961cca3946234d2cfc7b5ae

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.8.0

2 files

0.7.3

1 file

0.7.2

1 file

0.7.1

1 file

0.7.0

1 file

0.6.8

1 file

0.6.7

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page