Nagios XI Wizard Log Location

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Nagios XI Wizard Log Location

Post by emartine »

I have been modifying a wizard in /usr/local/nagiosxi/html/includes/configwizards/ to make a few changes to the configuration and added a section. Most of the configuration worked except for the input portion of it. Whenever I enable that section the Configuration Wizard tab goes blank. Where can I see the error that nagios is having a problem with?

I was using this document for to help troubleshoot and uploaded the configuration as stated here:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Wizard Log Location

Post by lmiltchev »

Usually blank pages indicate a php error. Check the apache error log for errors/clues:

Code: Select all

tail -100 /var/log/httpd/error_log
Can you upload the file that you modified on the forum?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI Wizard Log Location

Post by emartine »

Thanks lmiltchev. I have send you a PM.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Wizard Log Location

Post by lmiltchev »

Replied in a PM.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI Wizard Log Location

Post by emartine »

Thank you! That was greatly appreciated. Is there a logging level I need to set somewhere to get those errors?

I tried looking at
/var/log/httpd/error_log
but I was unable to produce an error.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Wizard Log Location

Post by lmiltchev »

Perhaps you need to enable error logging in the /etc/php.ini. Double check your settings. Try:

Code: Select all

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = On
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI Wizard Log Location

Post by emartine »

So my wizards seems to work fine in production without error messages but I see these messages at the top of the page on the test server.

Notice: Undefined index: requires_version in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 0 <--- At the start of the wizard
Notice: Undefined index: tpl in /usr/local/nagiosxi/html/config/monitoringwizard.php on line 0 <--- At step 4 of the wizard.

I even removed the new wizards and put the old ones back in. Yet I still see these messages. So I know its not the wizards causing these messages to come up.
My prod server is 5.5.9 and test is 5.5.11.
I removed the logging thinking that the logging created these but they are still there. Preflight check messages are fine showing no warnings or error messages.

So why do these messages show up?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Wizard Log Location

Post by lmiltchev »

These are just notices, so it's nothing to worry about. My understanding was that you wanted to see errors for troubleshooting purposes, that's why I told you to set:

Code: Select all

display_errors = On
This value is not meant to be used in a production setting. You can simply set display_errors to "Off" after you are done troubleshooting.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI Wizard Log Location

Post by emartine »

No worries. I thought it was going to be added to a log file somewhere instead of "on screen" if you will.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI Wizard Log Location

Post by lmiltchev »

Sure. Let us know if you have any further questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked