blob: 56bc8f63f4449d1091863d08aeb47ec1bd249868 (
plain) (
tree)
|
|
# vim: filetype=nagios
# System usage
define service {
service_description Size on root partition
use local-service
check_command check_local_disk!20%!10%!/
}
define command {
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
command_name check_local_disk
}
define service {
service_description Total number of process
use local-service
check_command check_local_procs!250!400!RSZDT
}
define command {
command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
command_name check_local_procs
}
define service {
service_description Average load
use local-service
check_command check_local_load!8.0,8.0,8.0!10.0,10.0,10.0
}
define command {
command_line $USER1$/check_load -w $ARG1$ -c $ARG2$
command_name check_local_load
}
define service {
service_description Swap usage
use local-service
check_command check_local_swap!20!10
}
define command {
command_line $USER1$/check_swap -n ok -w $ARG1$ -c $ARG2$
command_name check_local_swap
}
define service {
service_description Memory usage
use local-service
check_command check_memory!80!90
}
define command {
command_line $USER2$/check_mem.sh -w $ARG1$ -c $ARG2$
command_name check_memory
}
define command {
command_line $USER2$/check_command -c "$ARG1$" -s 0 -o "$ARG2$" $ARG3$
command_name check_command_output
}
# Network dependent local services
define service {
service_description NTP is activated and working
use local-service
check_command check_ntp
}
define command {
command_line $USER1$/check_ntp_time -t 30 -q -H 0.arch.pool.ntp.org
command_name check_ntp
}
|