> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/monitoring/nagios/cpu-threshold-value-calculation.md).

# 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
```
