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!
BUG in MIB uploader
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: BUG in MIB uploader
Thanks. I have made changes for the next release.
Re: BUG in MIB uploader
Also, make sure the /etc/php.ini file can handle the size as well. The default right now is 2M.