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.1.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.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: elenchos_check_cpu-1.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/6.14.6-300.fc42.x86_64

File hashes

Hashes for elenchos_check_cpu-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7e2dc0a15099627e1d4e2ca65225f2ac70fea9f53dddea55343dabb0ee201927
MD5 9b7af5f2aba0a5459d132c8feade7be4
BLAKE2b-256 4615cbed9d49c94d225cb7b09948ea7a7495cdf5b99e3efe8c05ca3ed1d0574e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: elenchos_check_cpu-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/6.14.6-300.fc42.x86_64

File hashes

Hashes for elenchos_check_cpu-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6645ae83b525d22ad8f59042a751fb647df592507d8b4759356c4595cebbba6
MD5 c963ea2dc6ccbe4624a3b97d15685f4f
BLAKE2b-256 f72e26de1828016465766c99dcf7b6e2ee08a67118cbae906402d6e8302d1a81

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