Hosts.cfg issue


#1

Hello,

I have the following error with my hosts.cfg file:

Error: Invalid max_check_attempts value for host 'as400’
Error: Could not register host (config file ‘/usr/local/nagios/etc/objects/hosts.cfg’, starting on line 2)
Error processing object config files!

the hosts.cfg file:

define host {
host_name as400
use generic-host
alias AS400 pour M3 et MACPAC
address 192.168.2.203
}

define service{
use generic-service
host_name as400
service_description PING
contact_groups admins
check_command check_ping!100.0,20%!500.0,60%
}

###############################################################################
###############################################################################

HOST GROUP DEFINITION

###############################################################################
###############################################################################

Define an optional hostgroup for Linux machines

define hostgroup{
hostgroup_name generic-servers ; The name of the hostgroup
alias Serveurs ; Long name of the group
members as400
}

where is my mistake??

Thanks


#2

Isn0’t this the same problem as the other thread?


#3

I have added max_check_attempts value in the template and it works

Thanks

Didier