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?
Copy an existing Wizard
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Copy an existing Wizard
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
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
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
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.
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.
Re: Copy an existing Wizard
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.
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
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
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!