Skip to content

Instantly share code, notes, and snippets.

@chuyeow
Created December 22, 2009 07:50
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save chuyeow/261591 to your computer and use it in GitHub Desktop.
Save chuyeow/261591 to your computer and use it in GitHub Desktop.
# Put this in nrpe.cfg on the remote host you're monitoring.
command[check_load]=/usr/local/nagios/libexec/check_load -w 5,4,3 -c 10,8,6
command[check_memory]=/usr/local/nagios/libexec/check_mem.pl -f -w 5 -c 2
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
command[check_swap]=/usr/local/nagios/libexec/check_swap -w 20% -c 10%
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
# Put this in its own file on your Nagios server.
define host{
use linux-server
host_name konata
address 192.168.1.123
}
# Local services on remote host.
define service{
use remote-service
host_name konata
service_description Load
check_command check_nrpe!check_load
normal_check_interval 2
retry_check_interval 1
}
define service{
use remote-service
host_name wego-deals
service_description Memory
check_command check_nrpe!check_memory
normal_check_interval 3
retry_check_interval 1
}
define service{
use remote-service
host_name konata
service_description Disk
check_command check_nrpe!check_disk
normal_check_interval 30
retry_check_interval 5
}
define service{
use remote-service
host_name konata
service_description Swap
check_command check_nrpe!check_swap
normal_check_interval 10
retry_check_interval 2
}
define service{
use remote-service
host_name konata
service_description Zombies
check_command check_nrpe!check_zombie_procs
normal_check_interval 60
retry_check_interval 5
}
define service{
use remote-service
host_name konata
service_description Processes
check_command check_nrpe!check_total_procs
normal_check_interval 30
retry_check_interval 5
}
define service{
use remote-service
host_name konata
service_description Users
check_command check_nrpe!check_users
normal_check_interval 60
retry_check_interval 5
}
# Other non-NRPE services.
define service{
use remote-service
host_name konata
service_description Ping
check_command check-host-alive
normal_check_interval 2
retry_check_interval 1
}
define service{
use remote-service
host_name konata
service_description SSH
check_command check_ssh!--port=3456
normal_check_interval 5
retry_check_interval 1
}
define service{
use remote-service
host_name konata
service_description HTTP
check_command check_http
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment