nagios4/t/etc/test_events.cfg

92 lines
1.8 KiB
INI

define host {
host_name host1
alias host1 test
address 127.0.0.1
max_check_attempts 2
check_period 24x7
check_interval 5
retry_interval 1
check_command check_me
contacts nagiosadmin
notification_interval 60
notification_period none
}
define service {
host_name host1
service_description Normal service
check_command check_me
max_check_attempts 3
check_interval 32
retry_interval 1
check_period 24x7
notification_interval 60
notification_period none
contacts nagiosadmin
}
define service {
host_name host1
service_description Normal service 2
check_command check_me
max_check_attempts 3
check_interval 32
retry_interval 1
check_period 24x7
notification_interval 60
notification_period none
contacts nagiosadmin
}
define service {
host_name host1
service_description To be nudged
check_command check_me
max_check_attempts 2
check_interval 32
retry_interval 1
check_period 24x7
notification_interval 60
notification_period none
contacts nagiosadmin
}
define command {
command_name check_me
command_line /usr/local/nagios/libexec/check_me
}
define timeperiod {
timeperiod_name none
alias Nothing
}
define timeperiod {
timeperiod_name 24x7
alias 24x7 base on weekdays
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
sunday 00:00-24:00
}
define contact {
contact_name nagiosadmin
host_notifications_enabled 0
service_notifications_enabled 0
host_notification_period none
service_notification_period none
host_notification_options d,u,f,r,s
service_notification_options w,u,c,r,f,s
host_notification_commands notify-none
service_notification_commands notify-none
}
define command {
command_name notify-none
command_line /usr/local/nagios/notifications/notify-none
}