Please help with nagios 2.9 hosts.cfg file

Hi,
Can someone please tell me where I went wrong, I read the docs and faq…
thanks

I keep getting the error
Error: Invalid service object directive ‘max_attempts’.
Error: Could not add object property in file ‘/etc/nagios/hosts.cfg’ on line 34.

my hosts.cfg file
define host{
name generic-switch ; The name of this host template
use generic-host ; Inherit default values from the generic-host template
check_period 24x7 ; By default, switches are monitored round the clock
check_interval 5 ; Switches are checked every 5 minutes
;retry_interval 1 ; Schedule host check retries at 1 minute intervals
max_check_attempts 10 ; Check each switch 10 times (ma:evil:
check_command check-host-alive ; Default command to check if routers are "alive"
notification_period 24x7 ; Send notifications at any time
notification_interval 30 ; Resend notifications every 30 minutes
notification_options d,r ; Only send notifications for specific host states
contact_groups admins ; Notifications get sent to the admins by default
register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
}

define host {
use generic-switch
host_name trango-calcity-e
alias trango-calcity-e
address trango-calcity-e
}

define hostgroup {
hostgroup_name radios
alias radios
members trango-calcity-e
}

define service {
use generic-service ; Name of service template to use
host_name trango-calcity-e
service_description PING
check_command check_ping!200.0,20%!600.0,60%
max_attempts 5
check_interval 5
retry_interval 5
notification_interval 5
}