Nagios compatible Memory Utilization health check script for Automatron
Simply copy the memfree.py
script to the plugins/checks/
directory
The memfree
health check is used to check whether the available memory on a system is within threshold.
- Linux
- Debian Base (Debian, Ubuntu, etc.)
- RedHat Base (RHEL, CentOS)
- FreeBSD
For Linux systems this check script does take into consideration the memory used for cache and Linux's ability to reclaim that memory.
The below is an example of the memfree
check used within a runbook.
checks:
memfree:
execute_from: target
type: plugin
plugin: memfree.py
args: --warn=20 --critical=10
In the above, the health check will return a WARNING
status if the memory is below 20%
and return a CRITICAL
status if the memory is below 10%
.
The memfree
check requires 2 arguments.
args: --warn=<warning threshold %> --critical=<critical threshold %>