BUG in MIB uploader

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

BUG in MIB uploader

Post by niebais »

Ok,
It's been a while since I last posted. I've just been swamped working on things, but I'm getting this bug.

First off: Nagios XI Version 2011R3.3
OS: Centos 6

Ok, so when I attempt to upload the file, I get this error: MIB could not be installed - directory permissions may be incorrect.

The real issue with this bug is that the TEMP NAME variable is incorrect and blank.

/usr/share/snmp/mibs/ - This directory should be checked to make sure it owned by apache as well.
(chown -R apache:apache /usr/share/snmp/mibs)

Here is the fix I put in to hopefully help you guys out here.
The fix is to change this line: <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> to The fix is to change this line: <input type="hidden" name="MAX_FILE_SIZE" value="5000000" /> or even a larger number to accomodate the bigger mib files.

Lastly, please handle the errors in the mibs.php file. It sends out an error "2" if the file is bigger than the MAXfilesize, but throws up a permissions error.

Thanks guys!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: BUG in MIB uploader

Post by scottwilkerson »

Thanks. I have made changes for the next release.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
niebais
Posts: 349
Joined: Tue Apr 13, 2010 2:15 pm

Re: BUG in MIB uploader

Post by niebais »

Also, make sure the /etc/php.ini file can handle the size as well. The default right now is 2M.
Locked