Skip to main content

This project provides tools that use Proxmox Backup Server (PBS) API with Proxmoxer package.

Project description

pbs_monitoring_tools

This project provides tools that use Proxmox Backup Server (PBS) API with Proxmoxer, in order to get status informations, like backups that have failed.

Tools

Usage

Available commands

You have to be authenticated in order to use this tool.

To set up authentication, create a auth.yaml file that looks like that:

host: <the_pbs_host>
user: <username@pbs>
token_name: <TOKEN_NAME>
token_value: <TOKEN_VALUE>

And replace placeholders by your credentials and host of the Proxmox Backup Server you'll need to reach.

The token has to have at least the Backup.Audit role/privilege.

Now, to use pbs-monitoring-tools, you'll have to use this command line

python3 -m pbs_monitoring_tools --auth-file ../<auth-file.yml> [arguments...]
python3 -m pbs_monitoring_tools --help
python3 -m pbs_monitoring_tools --version

Arguments

There is a few arguments that you can use:

python3 -m pbs_monitoring_tools --auth-file ../<auth-file.yml> --datastores --namespaces-to-ignore --max-depth --max-age --filling-remaining-days --quiet

All the command lines arguments are optional.

--datastores

If not provided, tools will consider that you want to run through all datastores. Otherwise, you can specify a datastores list, like that:

python3 -m pbs_monitoring_tools --auth-file ../<auth-file.yml> --datastores="datastore1,datastore2"

--namespaces-to-ignore

If not provided, tools will consider that you don't want to exclude any namespace. Otherwise, you can specify which namespaces you want to ignore:

python3 -m pbs_monitoring_tools --auth-file ../<auth-file.yml> --namespaces-to-ignore="namespace1,namespace2"

--max-depth

If not provided, tools default to maximum depth value allowed by API. Otherwise, you can specify a value between 0 and 7 (should be an integer value).

--max-snapshot-age-hours

If not provided, tools default to 72 hours (3 days) as value from which we consider that a snapshot is too old. You'll need to use hours as value (should be an integer value).

--filling-remaining-days

If not provided, tools default to 30 days. You'll need to use days as value (should be an integer value).

--debug

If provided, enable debug level logs.

--quiet

--no-errors

If provided, print nothing if snapshots check does not raise errors. Otherwise, print a message to tell that no errours were found.

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

pbs_monitoring_tools-0.1.2.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

pbs_monitoring_tools-0.1.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file pbs_monitoring_tools-0.1.2.tar.gz.

File metadata

  • Download URL: pbs_monitoring_tools-0.1.2.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for pbs_monitoring_tools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2a144f1d786b2c82213ce3c6a9e4eec7730946f51a8cfeef0337b8e97bdbbf58
MD5 eb84a7cf92d8f365d3c98e4664a3fd4d
BLAKE2b-256 343a81afa72fdd0bfd40295cbed2a53ed81b9feb3e6f061ccbf7fad500d52e42

See more details on using hashes here.

File details

Details for the file pbs_monitoring_tools-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pbs_monitoring_tools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f26ba4db939ff7c1640376070e411a984e2c6501b153465bfeb1624ee3ba9b67
MD5 7d9010618f860a899eb20e90d94f12d6
BLAKE2b-256 ef6b9e5cd8b5327304ca1b77cc5cdbf34418f4a3b566154b869ed1c2e5cb8250

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