Host Group 'department-hosts'
Code: Select all
WindowsHost1
WindowsService1
WindowsService2
WindowsHost2
WindowsService1
WindowsService2
LinuxHost1
LinuxService1
LinuxService2
LinuxHost2
LinuxService1
LinuxService2
Code: Select all
define host {
use generic-host
name department-linux-host
check_interval 5
check_command
contact_groups department-contacts
notification_interval 30
check_command check_tcp!22
hostgroups department-hosts
register 0
}
define host {
use generic-host
name department-windows-host
check_interval 5
check_command
contact_groups department-contacts
notification_interval 30
check_command check-host-alive
hostgroups department-hosts
register 0
}
define hostgroup {
hostgroup_name department-hosts
alias Department Hosts
}
define host {
use department-linux-host
host_name LinuxHost1
address LinuxHost1.domain.edu
}
define host {
use department-linux-host
host_name LinuxHost2
address LinuxHost2.domain.edu
}
define host {
use department-windows-host
host_name WindowsHost1
address WindowsHost1.domain.edu
}
define host {
use department-windows-host
host_name WindowsHost2
address WindowsHost2.domain.edu
}
define service {
name department-linux-service
use generic-service
check_interval 15
retry_interval 5
notification_interval 30
max_check_attempts 3
register 0
contact_groups department-contacts
hostgroup_name department-hosts
host_name LinuxHost1,LinuxHost2
}
define service {
use department-linux-service
service_description LinuxService1
check_command checknrpe_ip4!service1
}
define service {
use department-linux-service
service_description LinuxService2
check_command checknrpe_ip4!service2
}
define service {
name department-windows-service
use generic-service
check_interval 15
retry_interval 5
notification_interval 30
max_check_attempts 3
register 0
contact_groups department-contacts
hostgroup_name department-hosts
host_name WindowsHost1,WindowsHost2
}
define service {
use department-windows-service
service_descriptions WindowsService1
check_command check_nscp!service1
}
define service {
use department-windows-service
service_descriptions WindowsService2
check_command check_nscp!service2
}