Page 1 of 1

Debugging home made Configuration Wizards

Posted: Sat Apr 10, 2010 11:46 pm
by Box293
I'm in the process of creating some Configuration Wizards.

When I am initially testing what I've created I upload it to the /usr/local/nagiosxi/html/includes/configwizards/<wizardname>/ location.

I've noticed sometimes that if there is an error in my wizard the Configure window appears blank.
Configure screen blank.jpg
Even after deleting the wizard sometimes the screen remains blank. Even after restarting the XI server OS the problem persists. Then it seems after about 5 minutes the problem is corrected.

This doesn't happen every time. Most times if the config wizard has errors I get the blank screen, fix the problem and upload the wizard and everything returns to normal.

Question 1) Is there any log file I can check that will identify what is causing my wizard to make XI produce this behaviour?

Question 2) Is there some command I can run to force XI to re-scan the wizards folder after I completely delete the faulty wizard I've created?

Thanks

Troy

Re: Debugging home made Configuration Wizards

Posted: Sun Apr 11, 2010 5:14 pm
by mmestnik
I'll ask about this on Monday.

Re: Debugging home made Configuration Wizards

Posted: Mon Apr 12, 2010 12:32 pm
by admin
This is probably due to PHP errors, which aren't displayed in the browser. You'll find them in the Apache error logs. I just keep a watch on the Apache logs when developing new stuff with this command:

Code: Select all

tail -f /var/log/httpd/error_log

Re: Debugging home made Configuration Wizards

Posted: Tue Apr 13, 2010 5:19 am
by Box293
Awesome, this was exactly what I need. :ugeek:

I deleted an important character from a config wizard and when I went to the monitoring wizard page the error showed up in my putty session pointing out the exact section that had the error.

Thanks very much.