Debugging home made Configuration Wizards

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Debugging home made Configuration Wizards

Post 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
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Debugging home made Configuration Wizards

Post by mmestnik »

I'll ask about this on Monday.
User avatar
admin
Site Admin
Posts: 256
Joined: Mon Oct 12, 2009 8:21 am

Re: Debugging home made Configuration Wizards

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Ethan Galstad
President
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Debugging home made Configuration Wizards

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked