Page 1 of 1

BUG in MIB uploader

Posted: Mon Oct 08, 2012 10:33 pm
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!

Re: BUG in MIB uploader

Posted: Tue Oct 09, 2012 10:56 am
by scottwilkerson
Thanks. I have made changes for the next release.

Re: BUG in MIB uploader

Posted: Thu Oct 11, 2012 8:20 pm
by niebais
Also, make sure the /etc/php.ini file can handle the size as well. The default right now is 2M.