Notifications via jabber Nagios plugin
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 291d98a3de780279765098d792370ed8dfb1189fd3b3ad1adbcea2f4e5b26a62 |
|
MD5 | 9da81f43dae242bd9ceb858ee75bbba9 |
|
BLAKE2b-256 | 224955c5bbb6c60cad783326274090ba761a88458dd0dedd332366fcd2905ee0 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1ffe1ddf75353f9f8ba9b5c7c3b506239fc95421299fb95608b22d3f97e5534 |
|
MD5 | 521c1c5e18d1b0aafeaf101d6e34ea09 |
|
BLAKE2b-256 | 5f2e47f3d650e72fac7513a81d59f5e2578a1b9a3961cca3946234d2cfc7b5ae |