Error: Invalid max_check_attempts value for host
Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Error: Invalid max_check_attempts value for host 'N-Claassen'
Error: Could not register host (config file '/usr/local/nagios/etc/objects/samsung.cfg', starting on line 24)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
_________________________________________________________________________________
/objects/samsung.cfg
define host{
use Samsung-Phones ; Inherit default values from a template
host_name N-Claassen ; The name we're giving to this host
alias N-Claassen ; A longer name associated with the host
address 192.168.0.104 ; IP address of the host
}
define hostgroup{
hostgroup_name Samsung-Phones ; The name of the hostgroup
alias Samsung-Phones ; Long name of the group
members N-Claassen
}
/templates.cfg
#Samsung Voip Phones
define host{
name Samsung-Phones ; The name of this host template
use generic-host ; Inherit default values from the generic-host template
check_period 24x7 ; By default, Windows servers are monitored round the clock
check_interval 5 ; Actively check the server every 5 minutes
retry_interval 1 ; Schedule host check retries at 1 minute intervals
max_check_attempts 5 ; Check each server 10 times (max)
check_command check-host-alive ; Default command to check if servers are "alive"
notification_period 24x7 ; Send notification out at any time - day or night
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
hostgroups Samsung-Phones ; Host groups that Windows servers should be a member of
register 0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE
}