# CPU threshold value calculation

Nagios threshold value calculation:

For Nagios CPU Load setup, which includes warning and critical:

```bash
y = c * p / 100
```

Where: `y = nagios value` `c = number of cores` `p = wanted load procent`

For a 4 core system:

```bash
time      5 min  10 min    15 min
warning:  90%    70%       50%
critical: 100%   80%       60%
command[check_load]=/usr/local/nagios/libexec/check_load -w 3.6,2.8,2.0 -c 4.0,3.2,2.4
```

For a single core system:

```bash
y = p / 100
```

Where: y = nagios value p = wanted load procent

```bash
time       5 min  10 min    15 min
warning:   70%    60%       50%
critical:  90%    80%       70%
command[check_load]=/usr/local/nagios/libexec/check_load -w 0.7,0.6,0.5 -c 0.9,0.8,0.7
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arkannis.net/monitoring/nagios/cpu-threshold-value-calculation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
