Page 1 of 1
Copy an existing Wizard
Posted: Mon May 22, 2017 8:36 am
by fuchstiger
Hello!
I want to copy an existing wizard in my nagios xi installation. I have copied the linux_snmp folder in the configwizards directory and rename the folder and the "function name" in the php-config.
After that the configuation wizard website is blank. In the httpd error_log isn't anything. Anything seems to be fine.
If I rename the default linux_snmp folder, I see my copy of the wizard in the web page.
Is there a logic problem with my project?
Re: Copy an existing Wizard
Posted: Mon May 22, 2017 12:58 pm
by dwhitfield
Let us know if you have any questions after taking a look at
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: Copy an existing Wizard
Posted: Mon May 22, 2017 1:11 pm
by fuchstiger
I have already read this document but it does not help. I named all the functions and directory names how it is written in this pdf.
Re: Copy an existing Wizard
Posted: Mon May 22, 2017 2:03 pm
by lmiltchev
Can you zip up your custom wizard, and upload it on the forum, so that we can take a look at it?
Re: Copy an existing Wizard
Posted: Tue May 23, 2017 1:16 am
by fuchstiger
Here it is. This is a copy of the wizard "linux_snmp".
If I remove or rename the linux_snmp wizard I see my copy in the nagios xi webpage.
Re: Copy an existing Wizard
Posted: Tue May 23, 2017 3:03 pm
by jomann
It looks like you are re-defining a function at the end of the .inc.php file "configwizard_snmp_verify_wc", if you change that function to "configwizard_sap_verify_wc" (line 1109) and change where it is called (line 838) you should no longer have an issue.
Edit: I have also upped the error reporting in that page for future versions of XI so that the apache error_log will show the error.
Re: Copy an existing Wizard
Posted: Wed May 24, 2017 2:56 am
by fuchstiger
Yes, this fixes my problem

Thank you!
Re: Copy an existing Wizard
Posted: Wed May 24, 2017 1:22 pm
by dwhitfield
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!