Running Core Version 3.2.1 and recently added some new hosts however this has caused the service to no longer run. Obviously my config is the issue however I can't figure out what I am missing.
----------------------------------------------------------------------------------------------------------------------------------------------
Startup error looks like this
----------------------------------------------------------------------------------------------------------------------------------------------
-bash-3.2# /etc/rc.d/init.d/nagios start
Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration.
----------------------------------------------------------------------------------------------------------------------------------------------
Running the config check - /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
produces this error
----------------------------------------------------------------------------------------------------------------------------------------------
Processing object config file '/etc/nagiosql/services/atl-switch.cfg'...
' in file '/etc/nagiosql/services/atl-switch.cfg' on line 1.
Error processing object config files!
----------------------------------------------------------------------------------------------------------------------------------------------
Contents of the file in question - /etc/nagiosql/services/atl-switch.cfg
----------------------------------------------------------------------------------------------------------------------------------------------
define service
{
host_name FRE-fre1swe90301,FRE-fre1swe90302,FRE-fre1swe90303,FRE-fre1swe90304,FRE-fre1swe90305,FRE-kpsw_core,FRE-kpsw_dell,FRE-kpsw_dmz,FRE-kpsw_vhosts,HAL-ha1swc90101,HAL-ha1swe90101,HAL-ha1swe90102,HAL-ha1swe90201,HAL-ha1swe90202,HAL-ha1swe90203,HAL-ha1swe90204,HAL-ha1swe90205,HAL-ha1swe90206,HAL-ha1swe90207,HAL-ha1swe90208,HAL-ha1swe90209,STR-chasw9010101,STR-chasw9010201,STR-chasw9010202,STR-chasw9010203,STR-chasw9010204,STR-chasw9010205
service_description PING
use generic-service
check_command check_ping!200.0,20%!600.0,60%
check_interval 1
retry_interval 1
check_period 24x7
notification_period 24x7
register 1
}
Config/Startup error - Added new hosts, broke the service
Re: Config/Startup error - Added new hosts, broke the service
Seems like it's formatted correctly. Try starting with one host, and then added your list back into it a few at a time. See if the problem lies in a hostname with a typo.