Page 1 of 1

Nagios XI Wizard Log Location

Posted: Wed Apr 17, 2019 11:32 am
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

Re: Nagios XI Wizard Log Location

Posted: Wed Apr 17, 2019 1:08 pm
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?

Re: Nagios XI Wizard Log Location

Posted: Thu Apr 18, 2019 9:27 am
by emartine
Thanks lmiltchev. I have send you a PM.

Re: Nagios XI Wizard Log Location

Posted: Thu Apr 18, 2019 11:29 am
by lmiltchev
Replied in a PM.

Re: Nagios XI Wizard Log Location

Posted: Thu Apr 18, 2019 12:22 pm
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.

Re: Nagios XI Wizard Log Location

Posted: Thu Apr 18, 2019 12:34 pm
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

Re: Nagios XI Wizard Log Location

Posted: Tue Apr 23, 2019 11:46 am
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?

Re: Nagios XI Wizard Log Location

Posted: Tue Apr 23, 2019 12:31 pm
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.

Re: Nagios XI Wizard Log Location

Posted: Tue Apr 23, 2019 3:53 pm
by emartine
No worries. I thought it was going to be added to a log file somewhere instead of "on screen" if you will.

Re: Nagios XI Wizard Log Location

Posted: Tue Apr 23, 2019 4:54 pm
by lmiltchev
Sure. Let us know if you have any further questions.