Wizard upload error log

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

Wizard upload error log

Post by emartine »

I just attempted to upload a wizard I modifed and I get the error "Wizard installation failed. Uploaded zip file is not a config wizard." I renamed it and changed the templates and functions... however I can't seem to find the error log that states what the issue is.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Wizard upload error log

Post by tmcdonald »

Usually we only see this if someone is trying to upload a wizard into the component field, or if the wizard is truly corrupted/mangled/broken. I don't know of any sort of log that we would keep for this, but I can ask the developers what sort of things would cause it to fail. In the meantime, can you post/PM your wizard? If you PM it to me, please post back here saying you have done so for the benefit of the rest of the staff.

Update: Received and shared in network drive.
Former Nagios employee
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Wizard upload error log

Post by emartine »

Sent PM with web wizard attached.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Wizard upload error log

Post by scottwilkerson »

I PM's you back a fixed wizard

For others, here was the problem, a wizard must be in a folder with the same name as the *.inc.php file.

Also, I fixed a bug in the wizard code on line 558 where it was missing a comma, causing invalid PHP
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Wizard upload error log

Post by emartine »

Thanks Scott. I appreciate the help!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Wizard upload error log

Post by emartine »

I uploaded the wizard and noticed that everything below the regular website URL wizard disappeared. Looking into the logs to see what happened.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Wizard upload error log

Post by jomann »

Normally that means the page is hitting a warning that is causing the script to die but not actually breaking everywhere when it just gets loaded into the system, only when it's being called.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Wizard upload error log

Post by emartine »

I moved this /usr/local/nagiosxi/html/includes/configwizards/website_24x7 to /tmp and refreshed the web page. All the other wizards came back. Going to keep digging and see what happened.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Wizard upload error log

Post by scottwilkerson »

This is likely a bug in your wizard, check your apache log

tail -f /var/log/httpd/error_log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Wizard upload error log

Post by emartine »

No errors are showing up in the apache logs.
Locked