Page 2 of 2
Re: Service Re-Configuration Failed
Posted: Thu Jul 25, 2013 7:15 am
by danieloo
what does this say (just errors please)
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Re: Service Re-Configuration Failed
Posted: Thu Jul 25, 2013 1:38 pm
by abrist
amakorju wrote:After i try to apply configuration (which won't work), it generates a duplicate nagios.cfg (.swp), timeperiods.cfg (swp) and commands.cfg (swp) in the /usr/local/nagios/etc folder.
Do you happen to have these files open on another terminal?
Re: Service Re-Configuration Failed
Posted: Sun Jul 28, 2013 8:44 am
by amakorju
This is the error it gives after backing up and removing the timeperiods.cfg file
Error: Cannot open config file '/usr/local/nagios/etc/timeperiods.cfg' for reading: No such file or directory
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.
Re: Service Re-Configuration Failed
Posted: Mon Jul 29, 2013 10:34 am
by abrist
You must have performed an extra operation, like removing a file and commenting out the timeperiod in question. Return the file to its original location and rerun the "write" and "verify" steps. Post the output of those steps in code wraps. DO NOT a"apply configuration" or "restart" nagios just yet, as if the apply fails, the old config will be once again written back to disk.
Re: Service Re-Configuration Failed
Posted: Mon Jul 29, 2013 11:01 am
by amakorju
This is the error.
Error: Service check command 'check_xi_service_https' specified in service 'HTTP' for host 'SigmaFire' not defined anywhere!
Re: Service Re-Configuration Failed
Posted: Mon Jul 29, 2013 11:46 am
by lmiltchev
How did you set up this check? It seems like this command is not defined. Can you post the HTTP service definition?