Skip to main content

A Élenchos command for checking CPU usage.

Project description

Élenchos: Check cpu

A Élenchos command for checking CPU usage.

Installation and Configuration

Install Élenchos if not already installed:

cd /opt

mkdir elenchos
cd elenchos

python -m venv .venv
. .venv/bin/activate
pip install elenchos

mkdir bin
ln -s ../.venv/bin/elenchos bin/elenchos

Install the check:cpu plugin:

cd /opt/elenchos
. .venv/bin/activate

pip install elenchos-check-cpu
./bin/elenchos gather-commands

Create a configuration file /etc/nrpe.d/check_cpu.cfg for nrpe:

command[check_cpu]=/opt/elenchos/bin/elenchos check:cpu <arguments>

Possible arguments are:

  • -i, --interval=INTERVAL The interval between the two CPU statistics gatherings in seconds. [default: 2.0]
  • -w, --warning[=WARNING] The warning level for CPU user in %.
  • -c, --critical[=CRITICAL] The critical level for CPU user in %.

The warning and critical CPU levels are optional. Hence, one can use this Élenchos command solely for gather statistics.

Finally, restart the nrpe daemon:

systemctl reload nrpe

License

This project is licensed under the terms of the MIT license.

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

elenchos_check_cpu-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

elenchos_check_cpu-1.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file elenchos_check_cpu-1.0.0.tar.gz.

File metadata

  • Download URL: elenchos_check_cpu-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Linux/6.12.10-100.fc40.x86_64

File hashes

Hashes for elenchos_check_cpu-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f0ee2213c2354815fdc599264c36c618785b9f7697fcd4f6a55eefed3401cec1
MD5 c37808d2240c81a0bd3436b038fcd0c7
BLAKE2b-256 75ad7d827fd6560d367822369b77bf05d3ff56f1373553c5bce79ef0f4c9e3ee

See more details on using hashes here.

File details

Details for the file elenchos_check_cpu-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: elenchos_check_cpu-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.8 Linux/6.12.10-100.fc40.x86_64

File hashes

Hashes for elenchos_check_cpu-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86a41a73449be1be0733ea04591f5c109e91a82c29a6dd05a1a508103c0639c1
MD5 5e2b2481793374ecec47535c2a5a20ff
BLAKE2b-256 a50d6594c1612231a6f457b33b1a1d3a404dc024503b86a7d1047a7de82fab10

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