Skip to main content

An icinga check_command wrapper to icinga api for submitting passive check results.

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

icinga_passify-0.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

icinga_passify-0.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file icinga_passify-0.1.tar.gz.

File metadata

  • Download URL: icinga_passify-0.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for icinga_passify-0.1.tar.gz
Algorithm Hash digest
SHA256 e5f4dd740cfa0f62b2bc7d8b7b52efcddaabfa11cfb3e19e8c59dbeda4ff2c4d
MD5 150f93810d12da0d045bfc02c3664984
BLAKE2b-256 de24c49dbdf376b3621ecf687064d84217a1f7be311b226b133c9237dd721f22

See more details on using hashes here.

File details

Details for the file icinga_passify-0.1-py3-none-any.whl.

File metadata

  • Download URL: icinga_passify-0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.2

File hashes

Hashes for icinga_passify-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0360fb06aa66620f12802db2a28f53ec2c1c8cdcc645c65ead7590c6714bb6c0
MD5 82f0ff707d65539061ce41b9ac460071
BLAKE2b-256 7e9d044e03ad6bb9fa593f0b171e8390ac377d64d043ae62abec7efcc12fb6b4

See more details on using hashes here.

Supported by

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