58 lines
2.0 KiB
INI
58 lines
2.0 KiB
INI
# Host configuration file
|
|
|
|
define host {
|
|
use linux-server
|
|
host_name <HOST>
|
|
alias <HOST>
|
|
address <IP>
|
|
register 1
|
|
}
|
|
|
|
define service {
|
|
host_name <HOST>
|
|
service_description PING
|
|
check_command check_ping!100.0,20%!500.0,60%
|
|
max_check_attempts 2
|
|
check_interval 2
|
|
retry_interval 2
|
|
check_period 24x7
|
|
check_freshness 1
|
|
contact_groups admins,slackmins
|
|
notification_interval 2
|
|
notification_period 24x7
|
|
notifications_enabled 1
|
|
register 1
|
|
}
|
|
|
|
define service {
|
|
host_name <HOST>
|
|
service_description Check SSH
|
|
check_command check_ssh!-p 3838
|
|
max_check_attempts 2
|
|
check_interval 2
|
|
retry_interval 2
|
|
check_period 24x7
|
|
check_freshness 1
|
|
contact_groups admins
|
|
notification_interval 2
|
|
notification_period 24x7
|
|
notifications_enabled 1
|
|
register 1
|
|
}
|
|
|
|
define service {
|
|
host_name <HOST>
|
|
service_description Check HTTP
|
|
check_command check_http
|
|
max_check_attempts 2
|
|
check_interval 2
|
|
retry_interval 2
|
|
check_period 24x7
|
|
check_freshness 1
|
|
contact_groups admins
|
|
notification_interval 2
|
|
notification_period 24x7
|
|
notifications_enabled 1
|
|
register 1
|
|
}
|