2020-11-12 13:21:00 +00:00
|
|
|
---
|
|
|
|
description: |
|
|
|
|
This is the `check_memory` Nagios plugin, available e.g. in `/usr/lib/nagios/plugins/`. The read file content is limited to the first line.
|
|
|
|
functions:
|
|
|
|
file-read:
|
|
|
|
- code: |
|
|
|
|
LFILE=file_to_read
|
2020-11-13 10:56:48 +00:00
|
|
|
check_memory --extra-opts=@$LFILE
|
2020-11-12 13:21:00 +00:00
|
|
|
sudo:
|
|
|
|
- code: |
|
|
|
|
LFILE=file_to_read
|
2020-11-13 10:56:48 +00:00
|
|
|
sudo check_memory --extra-opts=@$LFILE
|
2020-11-12 13:21:00 +00:00
|
|
|
---
|