I am sorry to be a bother but I was doing my configuration file and I noticed a few errors when I check for sanity in it. I get the following on the check.
[root@ns1 etc]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Copyright (c) 1999-2007 Ethan Galstad (nagios.org)
Last Modified: 05-08-2007
Reading configuration data...
Error: Invalid max_check_attempts value for host 'HostHobo'
Error: Could not register host (config file '/usr/local/nagios/etc/localhost.cfg', starting on line 214)
And I am sure I did everything right but maybe I am wrong.
Here is what i have in the config file:
############# Remote Host Definition
name remote-host ; The name of this host template
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
failure_prediction_enabled 1 ; Failure prediction is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
notification_period 24x7 ; Send host notifications at any time
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A Template
### This is a real host (HostHobo.com - ns1.hosthobo.com)
name remote-server ; The name of this host template
use remote-host ; This template inherits other values from the remote-host template
check_period 24x7 ; By default, Linux hosts are checked round the clock
check_interval 5 ; Actively check the host every 5 minutes
retry_interval 1 ; Schedule host check retries at 1 minute intervals
max_check_attempts 5 ; Check each Linux host 10 times (ma:evil:
check_command check-host-alive ; Default command to check Linux hosts
notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day.
; Note that the notification_period variable is being overridden from
; the value that is inherited from the generic-host template!
notification_interval 120 ; Resend notifications every 2 hours
notification_options d,u,r ; Only send notifications for specific host states
contact_groups admins ; Notifications get sent to the admins by default
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE
use linux-server ; Name of host template to use
; This host definition will inherit all variables that are defined
; in (or inherited by) the linux-server host template definition.
address xxx.xxx.xxx.xxx <- Real Ip is here just masked atm.
I have no clue what to do from here?
Thanks in advance,