passify
An icinga check_command wrapper to icinga api for submitting passive check results. Call any nagios/icinga compatible check executable to submit results as a passive result.
usage
usage: passify.py [-h] [--config CONFIG] [--timeout TIMEOUT] -s SERVICE NAME [--ttl TTL] ...
Deploy passify.py on your server, this can be done locally or in your path. Call it with
python3 passify.py -s "Example Service" check_example <check_arguments>
or give it execution rights and call it like this:
./passify.py -s "Example Service" check_example <check_arguments>
Or in path like this:
passify -s "Example Service" check_example <check_arguments>
installation
- copy passify.py to your server.
- Install to path for full convenience if you like, call as seen above:
ln -s /usr/local/bin/passify /location/to/passify.py
-
Upon first run, you will be asked several configuration questions:
- the icinga master url submissions are only possible through the currently active master
- verify the fingerprint (hint:
openssl x509 -in /var/lib/icinga2/certs/<hostname>.crt -noout -fingerprint -sha256) - username and password for api submission (only basic-auth is currently supported)
-
alternatively you can deploy a config file (default: config.ini) with the script:
[DEFAULT]
url = https://localhost:5665/v1/actions/process-check-result
check_source = example.com
user = <api_user>
password = <api_password>
[TLS]
fingerprint = d163f22c2021a498926ff8c30da0288ac20d1b9edaa80d1dbb14c0aebf85245b
Metadata
Release files for icinga-passify 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| icinga_passify-0.1.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| icinga_passify-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / icinga_passify-0.1.tar.gz
| Download URL | icinga_passify-0.1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5f4dd740cfa0f62b2bc7d8b7b52efcddaabfa11cfb3e19e8c59dbeda4ff2c4d
|
|
BLAKE2b-256 checksum How to use checksums |
de24c49dbdf376b3621ecf687064d84217a1f7be311b226b133c9237dd721f22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.2
|
Release files / icinga_passify-0.1-py3-none-any.whl
| Download URL | icinga_passify-0.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0360fb06aa66620f12802db2a28f53ec2c1c8cdcc645c65ead7590c6714bb6c0
|
|
BLAKE2b-256 checksum How to use checksums |
7e9d044e03ad6bb9fa593f0b171e8390ac377d64d043ae62abec7efcc12fb6b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.2
|