Page 1 of 1

Installing new wizard breaks GUI

Posted: Fri Sep 09, 2016 1:54 pm
by corkyman
I installed the new wizard using Admin -> Manage Config Wizards and received The website cannot display the page right after an upload. The Admin functions would not work after that. I see the wizard's directories are installed fine in /usr/local/nagiosxi/html/includes/configwizards. When I remove the wizard's directory the GUI starts working again.
Even if there is a problem with the wizard there should be a meaningful error displayed.

I created the new wizard by downloading the existing linux_snmp wizard and updating the files as appropriate. Basically, I renamed it to tp_linux_snmp and also renamed the appropriate files. This was done just as a test and I an going to update the code when this test is working. I uploaded the zipped wizard.

Re: Installing new wizard breaks GUI

Posted: Fri Sep 09, 2016 2:06 pm
by tgriep
It looks like you didn't update the settings in the tp_linux_snmp.inc.php file for the configwizard name, version, etc..
Try editing that file and change those settings and see if that fixes it for you.

Re: Installing new wizard breaks GUI

Posted: Mon Sep 12, 2016 2:58 pm
by corkyman
Yes, that was the problem. I did not know how 'deep' the renaming should go. Thanks a lot!

Re: Installing new wizard breaks GUI

Posted: Mon Sep 12, 2016 3:42 pm
by tgriep
Your welcome. When the list of wizards are created, it looks in the files and if there is a duplicate name, that would cause the error you are seeing.
Is it alright to mark the post as solved and lock it up?