Invalid max_check_attempts value for host
Marc Powell
marc at ena.com
Thu Sep 6 19:47:52 CEST 2007
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Melanie Pfefer
> Sent: Thursday, September 06, 2007 10:08 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Invalid max_check_attempts value for host
>
> Hi,
>
> I am running nagios 2.9 and created a new file
> hosts.cfg to list all servers to be monitored.
>
> The initial lines were taken from localhost.cfg where
> it defines 2 templates and the localhost. I added
> these lines:
>
> # 'host1 ' host definition
> define host{
> use generic-host
> host_name host1
> address 172.10.31.22
> contact_groups sysadmin
> }
>
> ./nagios -v ../etc/nagios.cfg gives this error:
>
> Error: Invalid max_check_attempts value for host
> 'host1'
> Error: Could not register host (config file
> '/usr/local/nagios/etc/hosts.cfg', starting on line
> 56)
>
> any idea please on how to resolve this error?
Does your generic-host template specify a valid max_check_attempts
value? If not, you'll need to add it there or to the host definition
itself.
--
Marc
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list