Check qts-memory-usage¶
Overview¶
Returns the current system-wide memory utilization as a percentage from a QNAP Appliance running QTS, using the HTTP API.
Hints and Recommendations:
- Tested on QuTScloud v4.5.6+
- The user used for monitoring must be a member of the "administrators" group. It is not sufficient to be a member of the "everyone" group.
Fact Sheet¶
| Fact | Value |
|---|---|
| Check Plugin Download | https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/qts-memory-usage |
| Check Interval Recommendation | Once a minute |
| Can be called without parameters | No |
| Compiled for Windows | No |
Help¶
usage: qts-memory-usage [-h] [-V] [--always-ok] [-c CRIT] [--insecure]
[--no-proxy] --password PASSWORD [--timeout TIMEOUT]
--url URL [--username USERNAME] [-w WARN]
Returns the current system-wide memory utilization as a percentage from QNAP
Appliances running QTS via API.
options:
-h, --help show this help message and exit
-V, --version show program's version number and exit
--always-ok Always returns OK.
-c, --critical CRIT Set the critical threshold Memory Usage Percentage.
Default: 90
--insecure This option explicitly allows to perform "insecure" SSL
connections. Default: False
--no-proxy Do not use a proxy. Default: False
--password PASSWORD QTS Password.
--timeout TIMEOUT Network timeout in seconds. Default: 6 (seconds)
--url URL QTS-based Appliance URL, for example
https://192.168.1.1:8080.
--username USERNAME QTS User. Default: admin
-w, --warning WARN Set the warning threshold Memory Usage Percentage.
Default: 80
Usage Examples¶
./qts-memory-usage --url http://qts:8080 --username admin --password linuxfabrik --insecure
Output:
7.33% - total: 62.8GiB, used: 4.6GiB, free: 58.2GiB
States¶
- OK if overall
memory-usageis below the thresholds. - Otherwise CRIT or WARN.
Perfdata / Metrics¶
| Name | Type | Description |
|---|---|---|
| memory-usage | Bytes | The overall memory usage. |
| free | Bytes | The free memory. |
| total | Bytes | The total memory. |
| used | Bytes | The used memory. |
Credits, License¶
- Authors: Linuxfabrik GmbH, Zurich
- License: The Unlicense, see LICENSE file.