1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
; copied from testconfig.cfg
define host {
name generic-host-ext
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
process_perf_data 0 ; Process performance data
retain_status_information 1 ; Retain status information
retain_nonstatus_information 1 ; Retain non-status information
max_check_attempts 10
alias HOST
check_command check-host-alive
notification_interval 60
notification_period 24x7
notification_options d,u,r
register 0 ; it's just a template
}
define timeperiod{
timeperiod_name workhours
alias 24 Hours A Day, 7 Days A Week
sunday 00:00-24:00
monday 00:00-24:00
tuesday 00:00-24:00
wednesday 00:00-24:00
thursday 00:00-24:00
friday 00:00-24:00
saturday 00:00-24:00
}
define command {
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 4000.0,90% -c 6000.0,100% -p 5
}
; invented
define host {
use generic-host-ext
host_name PC0534
alias Example
address 127.0.0.1
notification_period workhours
}
; submitted by user
define host{
use generic-host-ext
host_name debian-master
alias Debian Master
parents PC0534
address 127.0.0.1
notification_period workhours
}
|