Tool: 2_check_and_report
Description:
This program performs some checks and return a report in case some of these checks fail: - The number of databases created is under a specific threshold parametrized through the -m argument. - The disk used by postgresql is not over a percentage of the total disk. The specific percentage is parametrized through the -p argument. - The number of connections stablished to the database is not over a percentage of the max connections value. The specific percentage is parametrized through the -c argument.
How to:
Note: The next commands are meant to be run in the same that directory in which this Readme.txt file is stored.
Disable any previously activated virtualenv:
$ deactivate
Setup environment:
$ ../../setup_env.sh
Enable virtualenv:
$ source venvs/2_check_and_report/bin/activate
Get the program help:
$ ./run -v
Run the tool (example):
This command checks: the amount of databases is less than 10, the percentage of partition disk used by postgresql is less than 0.2%, and the percentage of active connections to the postgresql service is less than 2.5%.
$ ./run.py -m 10 -p 0.2 -c 2.5
Metadata
Release files for pg_check_and_report 0.0.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 |
|---|---|---|---|---|
| pg_check_and_report-0.0.0.tar.gz | 3.8 kB | Without provenance | Details for pg_check_and_report-0.0.0.tar.gz |
Release files / pg_check_and_report-0.0.0.tar.gz
| Download URL | pg_check_and_report-0.0.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a14c6db84f46a6ffc684802500b96fa15bce5ece1b35cf23d3fb405f4cfc3068
|
|
BLAKE2b-256 checksum How to use checksums |
bcb5ff385b85d6d016532804ca2c726306b07ecebcd4e34a777b8f1f6b834e49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pg_check_and_report 0.0.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.