58 lines
1.6 KiB
INI
58 lines
1.6 KiB
INI
define host {
|
|
|
|
use linux-server ; Name of host template to use
|
|
; This host definition will inherit all variables that are defined
|
|
; in (or inherited by) the linux-server host template definition.
|
|
host_name srv
|
|
alias srv
|
|
address 192.168.0.39
|
|
}
|
|
|
|
|
|
|
|
###############################################################################
|
|
#
|
|
# HOST GROUP DEFINITION
|
|
#
|
|
###############################################################################
|
|
|
|
# Define an optional hostgroup for Linux machines
|
|
|
|
|
|
###############################################################################
|
|
#
|
|
# SERVICE DEFINITIONS
|
|
#
|
|
###############################################################################
|
|
|
|
# Define a service to "ping" the local machine
|
|
|
|
|
|
# Define a service to check the disk space of the root partition
|
|
# on the local machine. Warning if < 20% free, critical if
|
|
# < 10% free space on partition.
|
|
|
|
|
|
define service {
|
|
|
|
use generic-service ; Name of service template to use
|
|
host_name srv
|
|
service_description SSH
|
|
check_command check_ssh
|
|
notifications_enabled 0
|
|
}
|
|
|
|
|
|
|
|
# Define a service to check HTTP on the local machine.
|
|
# Disable notifications for this service by default, as not all users may have HTTP enabled.
|
|
|
|
define service {
|
|
|
|
use generic-service ; Name of service template to use
|
|
host_name srv
|
|
service_description HTTP
|
|
check_command check_http
|
|
notifications_enabled 0
|
|
}
|