Skip to content

Instantly share code, notes, and snippets.

@dzinevich
Created April 14, 2011 12:32
Show Gist options
  • Save dzinevich/919376 to your computer and use it in GitHub Desktop.
Save dzinevich/919376 to your computer and use it in GitHub Desktop.
web01-cfg
define host{
use generic-host ; Name of host template to use
host_name dwefdqwwe
alias web01-1
address 10.224.50.80
}
# Define a service to check the number of currently logged in
# users on the local machine. Warning if > 20 users, critical
# if > 50 users.
define service{
use generic-service ; Name of service template to use
host_name web01-app
service_description Current Users
check_command check_nrpe!check_users
}
# Define a service to check the number of currently running procs
# on the local machine. Warning if > 250 processes, critical if
# > 400 processes.
define service{
use generic-service ; Name of service template to use
host_name web01-app
service_description Total Processes
check_command check_nrpe!check_total_procs
}
# Define a service to check the load on the local machine.
define service{
use generic-service ; Name of service template to use
host_name web01-app
service_description Current Load
check_command check_nrpe!check_load
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment