Copy an existing Wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
fuchstiger
Posts: 22
Joined: Tue Apr 12, 2016 7:42 am

Copy an existing Wizard

Post 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?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Copy an existing Wizard

Post by dwhitfield »

Let us know if you have any questions after taking a look at https://assets.nagios.com/downloads/nag ... ios-XI.pdf
fuchstiger
Posts: 22
Joined: Tue Apr 12, 2016 7:42 am

Re: Copy an existing Wizard

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Copy an existing Wizard

Post by lmiltchev »

Can you zip up your custom wizard, and upload it on the forum, so that we can take a look at it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
fuchstiger
Posts: 22
Joined: Tue Apr 12, 2016 7:42 am

Re: Copy an existing Wizard

Post 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.
You do not have the required permissions to view the files attached to this post.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Copy an existing Wizard

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
fuchstiger
Posts: 22
Joined: Tue Apr 12, 2016 7:42 am

Re: Copy an existing Wizard

Post by fuchstiger »

Yes, this fixes my problem :) Thank you!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Copy an existing Wizard

Post by dwhitfield »

It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
Locked