Page 1 of 1

Processing object config file....

Posted: Mon Apr 30, 2012 10:58 am
by jbennett
I just recently ran into an issue trying to apply a a new config.

The last two lines of the error log are as follows:

Code: Select all

Processing object config file '/usr/local/nagios/etc/services/yyyyyyyyyyy.cfg'...
Processing object config file '/usr/local/nagios/etc/services/xxxxxxxx
It's almost like it's just hung up and doesn't go any further.

I have tried stopping the nagios service, killing all nagios services, then restarting it, but it didn't change anything. Any ideas what could be causing this?

Re: Processing object config file....

Posted: Mon Apr 30, 2012 11:07 am
by agriffin
Go to Configure->Core Config Manager->Tools->Write Config Files and click through each step, top to bottom, until you get an error (or it hangs). Copy the error here and let me know what step it occurred in.

Re: Processing object config file....

Posted: Mon Apr 30, 2012 11:23 am
by jbennett
agriffin wrote:Go to Configure->Core Config Manager->Tools->Write Config Files and click through each step, top to bottom, until you get an error (or it hangs). Copy the error here and let me know what step it occurred in.
Everything goes through just fine according to those steps. It tells me that the files are valid, even though it appears to just quit processing config files.

Code: Select all

Processing object config file '/usr/local/nagios/etc/services/yyyyyyyyyyyy.cfg'... 
Processing object config file '/usr/local/nagios/etc/services/xxxxxxxxxx


Written configuration files are valid. Nagios can be restarted!

Re: Processing object config file....

Posted: Mon Apr 30, 2012 11:43 am
by agriffin
Are there any errors in /var/log/httpd/error_log?

Re: Processing object config file....

Posted: Mon Apr 30, 2012 12:18 pm
by jbennett

Code: Select all

[Mon Apr 30 11:55:17 2012] [error] [client 127.0.0.1] PHP Warning:  include_once(/usr/local/nagiosxi/html/includes/components/snmpwalk/../configwizardhelper.inc.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /usr/local/nagiosxi/html/includes/components/snmpwalk/snmpwalk.inc.php on line 8
[Mon Apr 30 11:55:17 2012] [error] [client 127.0.0.1] PHP Warning:  include_once() [<a href='function.include'>function.include</a>]: Failed opening '/usr/local/nagiosxi/html/includes/components/snmpwalk/../configwizardhelper.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /usr/local/nagiosxi/html/includes/components/snmpwalk/snmpwalk.inc.php on line 8
I can't find much information about the SNMP walk wizard for some reason??

Re: Processing object config file....

Posted: Mon Apr 30, 2012 1:35 pm
by jbennett
Suddenly, I am able to apply the config file without issue.

Looking back through the log, it appears that the error I posted above has been present since at least April 1 (I can't go any further back as there aren't any other logs that I see).

Re: Processing object config file....

Posted: Mon Apr 30, 2012 1:38 pm
by agriffin
Well I'm glad you got it figured out. I'm pretty puzzled about what went wrong though. If it happens again let us know!