|
2 | 2 |
|
3 | 3 | ## Overview |
4 | 4 |
|
5 | | -Displays system memory usage and alerts on sustained high usage. Reports total/used/available/free plus shared/buffers/cached, and evaluates WARN/CRIT against the overall usage percentage. Perfdata is emitted for all fields so you can graph trends over time. With `--top`, the most memory-consuming processes are listed (by RSS and percentage) to aid quick diagnosis. Cross-platform on all psutil-supported systems (Linux, Windows, \*BSD, macOS). |
| 5 | +Monitors physical memory utilization with threshold-based alerting on overall memory usage percentage. Reports total, used, available, and free memory, plus platform-specific metrics (shared, buffers, cached). |
6 | 6 |
|
7 | | -Hints: |
| 7 | +**Alerting Logic:** |
8 | 8 |
|
9 | | -* Be aware of the differences in memory counting between different tools like top, htop, glances, GNOME System Monitor etc. |
10 | | -* Memory counting also changed between different Linux Kernel versions. |
| 9 | +* Thresholds apply to overall memory usage percentage (default: WARN at 90%, CRIT at 95%) |
| 10 | +* Single-point evaluation - alerts immediately when threshold exceeded (no sustained load detection) |
| 11 | +* Uses psutil's `percent` calculation which accounts for platform-specific memory semantics |
| 12 | + |
| 13 | +**Data Collection:** |
| 14 | + |
| 15 | +* Physical memory statistics only (RAM, excludes swap) |
| 16 | +* Reports `available` metric for cross-platform usable memory estimation |
| 17 | +* Platform-specific metrics on Linux/BSD: shared, buffers, cached |
| 18 | +* Optional top-N memory-consuming processes by RSS (`--top`, default: 5), aggregated by process name |
| 19 | + |
| 20 | +**Compatibility:** |
| 21 | + |
| 22 | +* Cross-platform: Linux, Windows, \*BSD, macOS |
| 23 | +* Stateless check - no database or state persistence required |
| 24 | + |
| 25 | +**Important Notes:** |
| 26 | + |
| 27 | +* Memory usage calculations differ between tools (top, htop, free) due to different counting methods and kernel versions |
| 28 | +* This check uses psutil's cross-platform `available` metric for consistency |
| 29 | +* Process memory percentages may sum to >100% on Linux due to shared memory accounting |
11 | 30 |
|
12 | 31 |
|
13 | 32 | ## Fact Sheet |
|
0 commit comments