Nagios xi Wizard - File Upload

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dimpa
Posts: 1
Joined: Thu Jul 25, 2019 5:58 am

Nagios xi Wizard - File Upload

Post by dimpa »

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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios xi Wizard - File Upload

Post by ssax »

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:

Code: Select all

https://code.tutsplus.com/tutorials/how-to-upload-a-file-in-php-with-example--cms-31763
Locked