Page 1 of 1

Manage MIBs permissions issue

Posted: Wed Sep 28, 2016 2:36 pm
by TBT
While using the Manage MIBs GUI, we're seeing an error "MIB could not be installed - directory permissions may be incorrect."

All MIBs within the listing are own by root and group root or nagios. I seem to recall this permissions issue happening after a past upgrade too, please advise on proper configuration so we can avoid these permission issues in the future.

Re: Manage MIBs permissions issue

Posted: Wed Sep 28, 2016 4:48 pm
by mcapra
Can you set ownership of the folder the mibs are stored in (usually /usr/share/snmp/mibs) to nagios.apache?

Code: Select all

chown nagios.apache /usr/share/snmp/mibs
Also make sure the group has write permissions:

Code: Select all

chmod 774 /usr/share/snmp/mibs
And see if that resolves things?

Re: Manage MIBs permissions issue

Posted: Thu Sep 29, 2016 11:53 am
by TBT
Yes, knew it to be a permissions issue. The concern is primarily why it changed after upgrade, we'll have to keep an eye on it next time. Will report back if it happens again.

Re: Manage MIBs permissions issue

Posted: Thu Sep 29, 2016 3:18 pm
by mcapra
I wasn't able to replicate this when upgrading from 5.2.8 to 5.2.9, so there may have been an issue with a past version that was fixed recently.

Which versions were involved with this latest upgrade?

Re: Manage MIBs permissions issue

Posted: Thu Sep 29, 2016 3:23 pm
by TBT
Development: 5.2.9
Test: 5.2.7
Production: 5.2.3

Permissions were the same across all servers. Perhaps related to a past upgrade.

Re: Manage MIBs permissions issue

Posted: Thu Sep 29, 2016 4:50 pm
by tgriep
It could be that an updated SNMP RPM package changed the permissions and not the Nagios upgrade script, maybe that could be it.