Icinga Tray
This script creates a system tray icon that displays current Icinga information and sends notifications on changes. It uses the icingaweb-API.
It runs on Linux and Windows, possibly on Mac, but that's untested.
Installation
Install using pip:
pip install icinga-tray
Configuration
At this point the configuration is done with a config file in JSON format, no GUI available.
The file should be located here:
- Linux:
$XDG_CONFIG_HOME/icinga_tray/config.json(default is~/.config/icinga-tray/config.json) - Windows:
%USERPROFILE%\AppData\Local\icinga-tray\icinga-tray\config.json
It should look like this:
{
"base_url": "https://my.icinga.server/icingaweb2/",
"ssl_verify": "yes",
"user": "login",
"notifications": "yes",
"use_keyring": "yes",
"interval": 10000,
"host_groups": ["host_group1", "host_group2"]
}
base_url: the URL to the icinga-Webinterfacessl_verify: whether to check for a valid ssl certificateuser: the login to authenticatenotifications: whether to send desktop notifications or notuse_keyring: if set to yes, the credentials will be stored in the system keyring, if set to no the password needs to be entered on every launchinterval: refresh interval in mshost_groups: host groups to monitor (no "all" setting or similar available at this point)
Run
- Linux: simply run
icinga_trayfrom anywhere. Make sure that the install directory is in yourPATH - Windows: run
icinga_trayfrom a terminal or create a shortcut as target simply puticinga_tray, you can add it to your autostart
Metadata
Release files for icinga-tray 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| icinga_tray-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Release files / icinga_tray-0.1.5-py3-none-any.whl
| Download URL | icinga_tray-0.1.5-py3-none-any.whl |
|---|---|
| Size | 69.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ea62cd17f5b7acf9179ba7c64e17c5e024cc7de649f1c6e6f7a77544166a298
|
|
BLAKE2b-256 checksum How to use checksums |
b631b8f442a311c66817516b0d54833324f3715f804d0201812c277d14ad1188
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|