Skip to main content

É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.

Metadata

Release files for elenchos_check_cpu 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for elenchos_check_cpu 1.1.0
File Size Uploaded
elenchos_check_cpu-1.1.0.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for elenchos_check_cpu 1.1.0
File Interpreter ABI Platform
elenchos_check_cpu-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / elenchos_check_cpu-1.1.0.tar.gz

Download URL elenchos_check_cpu-1.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7e2dc0a15099627e1d4e2ca65225f2ac70fea9f53dddea55343dabb0ee201927
BLAKE2b-256 checksum
How to use checksums
4615cbed9d49c94d225cb7b09948ea7a7495cdf5b99e3efe8c05ca3ed1d0574e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.3 Linux/6.14.6-300.fc42.x86_64

Release files / elenchos_check_cpu-1.1.0-py3-none-any.whl

Download URL elenchos_check_cpu-1.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6645ae83b525d22ad8f59042a751fb647df592507d8b4759356c4595cebbba6
BLAKE2b-256 checksum
How to use checksums
f72e26de1828016465766c99dcf7b6e2ee08a67118cbae906402d6e8302d1a81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.3 Linux/6.14.6-300.fc42.x86_64

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page