Skip to main content

A nagios plugin for checking pressure stall information values provided by the kernel for cpu, io and memory

Project description

check_psi

Tests

A nagios plugin for checking pressure stall information values provided by the kernel for cpu, io and memory

Tested for

  • python 3.9.2
  • python 3.11.2
  • python 3.13.5

usage

usage: check_psi.py [-h] {cpu,io,memory} ...

Nagios plugin to monitor current pressure stall information against desired thresholds

positional arguments:
  {cpu,io,memory}
    cpu            Override default values for cpu pressure.
    io             Override default values for io pressure.
    memory         Override default values for memory pressure.

options:
  -h, --help       show this help message and exit

You can override all default thresholds with sensible values of your own for warning and critical values like in this example for "io", cpu and memory are used exactly the same:

usage: check_psi.py io [-h] [--full-avg10 WARN:CRIT] [--full-avg60 WARN:CRIT] [--full-avg300 WARN:CRIT] [--some-avg10 WARN:CRIT] [--some-avg60 WARN:CRIT] [--some-avg300 WARN:CRIT]

options:
  -h, --help            show this help message and exit
  --full-avg10 WARN:CRIT
                        Override thresholds for warning and critical for avg10 time window for "full" values
  --full-avg60 WARN:CRIT
                        Override thresholds for warning and critical for avg60 time window for "full" values
  --full-avg300 WARN:CRIT
                        Override thresholds for warning and critical for avg300 time window for "full" values
  --some-avg10 WARN:CRIT
                        Override thresholds for warning and critical for avg10 time window for "some" values
  --some-avg60 WARN:CRIT
                        Override thresholds for warning and critical for avg60 time window for "some" values
  --some-avg300 WARN:CRIT
                        Override thresholds for warning and critical for avg300 time window for "some" values

installation from package

  1. optionally create virtualenv
  2. install pypi package
  3. test

alternative manual installation

  1. clone repository to /usr/local/bin/
  2. create virtualenv
  3. install pipenv via pip
  4. pipenv sync
  5. test

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

check_psi-1.1.2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

check_psi-1.1.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file check_psi-1.1.2.tar.gz.

File metadata

  • Download URL: check_psi-1.1.2.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for check_psi-1.1.2.tar.gz
Algorithm Hash digest
SHA256 cc0048c6b5cc9ff53a69883462fe2f4d0a0cc6081021daee2852551e8366d420
MD5 1baab6a79886a609d302f0cf727fc848
BLAKE2b-256 1689fda52390a683286b18bd7b929d52911ae98441e1ed584a37b675158b75d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for check_psi-1.1.2.tar.gz:

Publisher: publish.yml on BonaFideIT/check_psi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file check_psi-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: check_psi-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for check_psi-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f09b42d88443068e702918ab7fb5946f2b7d36c8fe173c4a5ec2883af88dbfb8
MD5 a13999bbfcc27b6fb5655ce0523a92a3
BLAKE2b-256 ebe149b128d6dc45c144b5bed64aece269691c31e0a4c3696c143cbfc617b62a

See more details on using hashes here.

Provenance

The following attestation bundles were made for check_psi-1.1.2-py3-none-any.whl:

Publisher: publish.yml on BonaFideIT/check_psi

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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