Skip to main content

No project description provided

Project description

Network Health Check

Configurable command line application that can be used to test network conditions are as expected.

Very early work in progress version!

poetry

Example:

$ poetry run netcheck check --type=dns --should-fail
Passed but was expected to fail.
{'type': 'dns', 'nameserver': None, 'host': 'github.com', 'A': ['20.248.137.48']}

Individual Assertions

./netcheck check --type=dns --server=1.1.1.1 --host=hardbyte.nz --should-fail
./netcheck check --type=dns --server=1.1.1.1 --host=hardbyte.nz --should-pass
./netcheck check --type=http --method=get --url=https://s3.ap-southeast-2.amazonaws.com --should-pass

Output is quiet by default, json available with --json (TODO).

python -m netcheck.cli --help

Configuration via file

A json file can be provided with a list of assertions to be checked:

{
  "assertions": [
    {"name":  "deny-cloudflare-dns", "rules": [{"type": "dns", "server":  "1.1.1.1", "host": "github.com", "expected": "pass"}] }
  ]
}

And the command can be called:

$ poetry run netcheck run --config config.json

Project details


Download files

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

Source Distribution

netcheck-0.1.0.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

netcheck-0.1.0-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

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