####################################################
# HOST TEMPLATES
####################################################

define host {
    name                            xi_host_generic
    alias                           Generic Host
    _template_description           Generic Host
    check_command                   check_xi_host_ping
    check_interval                  5
    retry_interval                  1
    max_check_attempts              5
    check_period                    xi_timeperiod_24x7
    notifications_enabled           1
    notification_interval           15
    notification_period             xi_timeperiod_24x7
    contacts                        xi_contact_default
    register                        0
}

define host {
    name                            xi_host_generic_network_device
    use                             xi_host_generic
    alias                           Generic Network Device
    _template_description           Generic Network Device
    check_command                   check_xi_host_ping
    hostgroups                      xi_hostgroup_generic_network_devices
    register                        0
}

define host {
    name                            xi_host_website
    use                             xi_host_generic
    alias                           Website
    _template_description           Website
    check_command                   check_xi_host_http
    hostgroups                      xi_hostgroup_websites
    register                        0
}

define host {
    name                            xi_host_windows_server
    use                             xi_host_generic
    alias                           Windows Server
    _template_description           Windows Server
    check_command                   check_xi_host_ping
    hostgroups                      xi_hostgroup_windows_servers
    register                        0
}

define host {
    name                            xi_host_windows_workstations
    use                             xi_host_generic
    alias                           Windows Workstation
    _template_description           Windows Workstation
    check_command                   check_xi_host_ping
    hostgroups                      xi_hostgroup_windows_workstations
    register                        0
}

define host {
    name                            xi_host_osx_machine
    use                             xi_host_generic
    alias                           OSX Machines
    _template_description           OSX Machines
    check_command                   check_xi_host_ping
    hostgroups                      xi_hostgroup_osx_machines
    register                        0
}

define host {
    name                            xi_host_linux_server
    use                             xi_host_generic
    alias                           Linux Server
    _template_description           Linux Server
    check_command                   check_xi_host_ping
    hostgroups                      xi_hostgroup_linux_servers
    register                        0
}

define host {
    name                            xi_host_printer
    use                             xi_host_generic
    alias                           Printer
    _template_description           Printer
    check_command                   check_xi_host_ping
    hostgroups                      xi_hostgroup_printers
    register                        0
}

define host {
    name                            xi_host_switch
    use                             xi_host_generic
    alias                           Switch
    _template_description           Switch
    check_command                   check_xi_host_ping
    hostgroups                      xi_hostgroup_switches
    register                        0
}

define host {
    name                            xi_host_router
    use                             xi_host_generic
    alias                           Router
    _template_description           Router
    check_command                   check_xi_host_ping
    hostgroups                      xi_hostgroup_routers
    register                        0
}

define host {
    name                            xi_host_firewall
    use                             xi_host_generic
    alias                           Firewall
    _template_description           Firewall
    check_command                   check_xi_host_ping
    hostgroups                      xi_hostgroup_firewalls
    register                        0
}

####################################################
# SERVICE TEMPLATES
####################################################

define service {
    name                            xi_service_generic
    _template_description           Generic Service
    check_command                   check_xi_service_none
    check_interval                  5
    retry_interval                  1
    max_check_attempts              5
    check_period                    xi_timeperiod_24x7
    notifications_enabled           1
    notification_interval           15
    notification_period             xi_timeperiod_24x7
    register                        0
}
