Nagios XI Wizard Log Location
Nagios XI Wizard Log Location
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
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
Usually blank pages indicate a php error. Check the apache error log for errors/clues:
Can you upload the file that you modified on the forum?
Code: Select all
tail -100 /var/log/httpd/error_logBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI Wizard Log Location
Thanks lmiltchev. I have send you a PM.
Re: Nagios XI Wizard Log Location
Replied in a PM.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI Wizard Log Location
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.
I tried looking at
/var/log/httpd/error_log
but I was unable to produce an error.
Re: Nagios XI Wizard Log Location
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 = OnBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI Wizard Log Location
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?
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
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:
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.
Code: Select all
display_errors = OnBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios XI Wizard Log Location
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
Sure. Let us know if you have any further questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!