Nagios
check_memory
Alert when memory usage exceeds warning or critical thresholds.
check-memory.yml
# Requires check_mem.pl — bundled in nagios-plugins-contrib on Debian/Ubuntu,
# or download from https://exchange.nagios.org/
# Define the command in commands.cfg:
define command {
command_name check_memory
command_line $USER1$/check_mem.pl -w $ARG1$ -c $ARG2$
}
# Use in a service definition:
define service {
use generic-service
host_name web-01
service_description Memory Usage
check_command check_memory!80!95
# Warn at 80% memory used, critical at 95%
}