# Élenchos: Check cpu
A Élenchos command for checking CPU usage.
## Installation and Configuration
Install Élenchos if not already installed:
```shell
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:
```shell
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:
```shell
systemctl reload nrpe
```
## License
This project is licensed under the terms of the MIT license.
Raw data
{
"_id": null,
"home_page": "https://github.com/NagiosElenchos/check_cpu",
"name": "elenchos_check_cpu",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0.0,>=3.10.0",
"maintainer_email": null,
"keywords": "\u00c9lenchos, Elenchos, CPU",
"author": "Set Based IT Consultancy",
"author_email": "info@setbased.nl",
"download_url": "https://files.pythonhosted.org/packages/a1/84/2b278a6e4bed579d02a7fab1d63ab3935bc2fe810287695ee4bc7f50b82f/elenchos_check_cpu-1.0.1.tar.gz",
"platform": null,
"description": "# \u00c9lenchos: Check cpu\n\nA \u00c9lenchos command for checking CPU usage.\n\n## Installation and Configuration\n\nInstall \u00c9lenchos if not already installed:\n\n```shell\ncd /opt\n\nmkdir elenchos\ncd elenchos\n\npython -m venv .venv\n. .venv/bin/activate\npip install elenchos\n\nmkdir bin\nln -s ../.venv/bin/elenchos bin/elenchos\n```\n\nInstall the `check:cpu` plugin:\n\n```shell\ncd /opt/elenchos\n. .venv/bin/activate\n\npip install elenchos_check_cpu\n./bin/elenchos gather-commands\n```\n\nCreate a configuration file `/etc/nrpe.d/check_cpu.cfg` for `nrpe`:\n\n```\ncommand[check_cpu]=/opt/elenchos/bin/elenchos check:cpu <arguments>\n```\n\nPossible arguments are:\n\n* `-i`, `--interval=INTERVAL` The interval between the two CPU statistics gatherings in seconds. [default: 2.0]\n* `-w`, `--warning[=WARNING]` The warning level for CPU user in %.\n* `-c`, `--critical[=CRITICAL]` The critical level for CPU user in %.\n\nThe warning and critical CPU levels are optional. Hence, one can use this \u00c9lenchos command solely for gather statistics.\n\nFinally, restart the `nrpe` daemon:\n\n```shell\nsystemctl reload nrpe\n```\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A \u00c9lenchos command for checking CPU usage.",
"version": "1.0.1",
"project_urls": {
"Documentation": "https://github.com/NagiosElenchos/check_cpu",
"Homepage": "https://github.com/NagiosElenchos/check_cpu",
"Repository": "https://github.com/NagiosElenchos/check_cpu"
},
"split_keywords": [
"\u00e9lenchos",
" elenchos",
" cpu"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ebbb651eae25046c8c1091eb805cd4d1b6320a9a3548b04832a2ed6c76d3d54b",
"md5": "03b5cd6bcc741ab10f747006e2e6897f",
"sha256": "38bf1e87d0c03f3e0ea3ee2b9feb13480bb55fdf2bc75467a916fd6bdc4b272f"
},
"downloads": -1,
"filename": "elenchos_check_cpu-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "03b5cd6bcc741ab10f747006e2e6897f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0.0,>=3.10.0",
"size": 5063,
"upload_time": "2025-01-31T07:58:12",
"upload_time_iso_8601": "2025-01-31T07:58:12.754921Z",
"url": "https://files.pythonhosted.org/packages/eb/bb/651eae25046c8c1091eb805cd4d1b6320a9a3548b04832a2ed6c76d3d54b/elenchos_check_cpu-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a1842b278a6e4bed579d02a7fab1d63ab3935bc2fe810287695ee4bc7f50b82f",
"md5": "4651fc9715fb2ea51e78a4dd1d17b9d5",
"sha256": "77388e92638c87806c184672cc7a129d4abc5f6f831627bc609b97bcc861fbd9"
},
"downloads": -1,
"filename": "elenchos_check_cpu-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "4651fc9715fb2ea51e78a4dd1d17b9d5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0.0,>=3.10.0",
"size": 3569,
"upload_time": "2025-01-31T07:58:14",
"upload_time_iso_8601": "2025-01-31T07:58:14.431295Z",
"url": "https://files.pythonhosted.org/packages/a1/84/2b278a6e4bed579d02a7fab1d63ab3935bc2fe810287695ee4bc7f50b82f/elenchos_check_cpu-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-31 07:58:14",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "NagiosElenchos",
"github_project": "check_cpu",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "elenchos_check_cpu"
}