# Managed with Ansible

define host {
    use                     linux-server
    host_name               {{ item.host_name }}
    alias                   {{ item.host_name }}
    address                 {{ item.host_ip }}
}

define service {
    use                     bindir-service
    host_name               {{ item.host_name }}
    service_description     PING
    check_command           check_ping!100.0,20%!500.0,60%
}

define service {
    use                     bindir-service
    host_name               {{ item.host_name }}
    service_description     DISK_ROOT
    check_command           check_nrpe!-c check_disk
}

define service{
    use                     bindir-service
    host_name               {{ item.host_name }}
    service_description     LOAD
    check_command           check_nrpe!-c check_load
}

define service{
    use                     bindir-service
    host_name               {{ item.host_name }}
    service_description     SWAP
    check_command           check_nrpe!-c check_swap
}