Code: Select all
define host{
use generic-host ;Inherit default values from a template
host_name website ; The name we're giving to this host
alias http://www.website.com ; A longer name associated with the host
address http://www.website.com ; IP address of the host
max_check_attempts 3
contact_groups admins
#hostgroups allhosts ; Host groups this host is associated with
}
define service{
use generic-service ; Name of service template to use
host_name website
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}
define service{
use generic-service ; Name of service template to use
host_name website
service_description HTTP
check_command check_http -H http://www.website.com
notifications_enabled 0
}