55 lines
1.4 KiB
INI
55 lines
1.4 KiB
INI
define host {
|
|
host_name host1
|
|
alias host1 test
|
|
address 192.168.1.1
|
|
max_check_attempts 2
|
|
check_period none
|
|
contacts nagiosadmin
|
|
notification_interval 60
|
|
notification_period none
|
|
}
|
|
define command {
|
|
command_name check_me
|
|
command_line /usr/local/nagios/libexec/check_me
|
|
}
|
|
define timeperiod {
|
|
timeperiod_name none
|
|
alias Nothing
|
|
}
|
|
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
|
|
}
|
|
define contact {
|
|
contact_name second
|
|
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 contactgroup {
|
|
contactgroup_name causetestfailure
|
|
alias This causes a test failure by having a comma separated list before the empty contactgroup
|
|
members nagiosadmin,second
|
|
}
|
|
define contactgroup {
|
|
contactgroup_name empty
|
|
alias No members defined - this should pass validation
|
|
}
|