Nagios
check_cpu
Alert when CPU utilization exceeds warning or critical thresholds.
check-cpu.yml
# Requires the check_cpu plugin — install via your package manager or
# download from https://exchange.nagios.org/
# Define the command in commands.cfg:
define command {
command_name check_cpu
command_line $USER1$/check_cpu -w $ARG1$ -c $ARG2$
}
# Use in a service definition:
define service {
use generic-service
host_name web-01
service_description CPU Utilization
check_command check_cpu!80!95
# Warn at 80% CPU usage, critical at 95%
}