Ping Hosts and URLs and keep stats on successes and failures
Run this as a daemon on your box and check in to see if there are problems.
Intended to be a slightly different approach to blackbox_exporter.
Installing
pip install pingertron
Running
pingertron probes.yaml
ICMP usually needs root access to send packets:
sudo pingertron probes.yaml
There is an example probes.yaml you can use as a basis for your own.
probes.yaml
Specify one or more probes to run using probes.yaml.
This file is re-read on each evaluation cycle, so you can update it without restarting the process.
Example probes.yaml:
interval_seconds: 60 # seconds between each batch of probes being sent
probes:
- protocol: http # one of icmp or http
description: my probe # optional description
# probe specific properties
# HTTP Probe
- protocol: http
# description: my HTTP probe # optional description
url: https://example.com/ # URL to probe, http or https
method: GET # HTTP method to use
expected_status_code: 200 # HTTP status code you expect, usually 200
# ICMP Probe
- protocol: icmp
# description: my ICMP probe # optional description
hostname: 10.0.0.1 # Hostname or IP to ping.
The canonical definition of what goes into this file can be found in probes_config.py.
Developing
devenv
If you use devenv:
direnv allow .
poetry
If you use poetry:
poetry install
poetry run pingertron
Metadata
Release files for pingertron 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pingertron-0.3.0.tar.gz | 5.2 kB | Without provenance | Details for pingertron-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pingertron-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pingertron-0.3.0-py3-none-any.whl |
Total release size: 11.7 kB
Release files / pingertron-0.3.0.tar.gz
| Download URL | pingertron-0.3.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8a7a801b4b2371a290b27bb31acbfb9e817f971cad91d809cf9d39d9590a511
|
|
BLAKE2b-256 checksum How to use checksums |
cb425b2e15d4e350ffca82af86b2aaeb449fd756efdc9121acee2323a9e017d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.12 Darwin/22.5.0
|
Release files / pingertron-0.3.0-py3-none-any.whl
| Download URL | pingertron-0.3.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89cec8095b24a73697524518f1d2eba121c5d2bbec78b778a058aaec60a745c4
|
|
BLAKE2b-256 checksum How to use checksums |
ab3adedb2edbbeaaec1a43c8b1cf280f2886708a19c70ded213978649f89fd9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.12 Darwin/22.5.0
|
Security for pingertron 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.