Nagios xi Wizard - File Upload
Nagios xi Wizard - File Upload
We want to write a custom configuration wizard and we would like to implement an upload feature for the stage 1.Obviously using an upload form is not a good idea for a nagios xi wizard. Do you have any suggestions on how we could proceed?
Re: Nagios xi Wizard - File Upload
Architecting a custom wizard is not something we generally get into on the support side and would fall more into the paid consulting area. If that is something you're interested in you can contact sales@nagios.com to get more information/a quote.
That being said, there are many ways to do it through AJAX/XHR/passing to stage2, etc but there's no generic file upload functionality defined in nagios XI for you to use. Please look through the existing wizards for current functionality but I can't think of any config wizard currently that do a file upload other than Admin > Manage MIBs but that isn't in a stage of a wizard.
Same functionality in PHP though:
Grab the POST data and process the FILE with PHP is really the only way, see here for all of the things impacted (expected file sizes and PHP limits, etc) for your custom wizard:
That being said, there are many ways to do it through AJAX/XHR/passing to stage2, etc but there's no generic file upload functionality defined in nagios XI for you to use. Please look through the existing wizards for current functionality but I can't think of any config wizard currently that do a file upload other than Admin > Manage MIBs but that isn't in a stage of a wizard.
Same functionality in PHP though:
Grab the POST data and process the FILE with PHP is really the only way, see here for all of the things impacted (expected file sizes and PHP limits, etc) for your custom wizard:
Code: Select all
https://code.tutsplus.com/tutorials/how-to-upload-a-file-in-php-with-example--cms-31763