I've already thought about the same, as on the Nagios XI "Manage MIB's" You can see the permissions, and I noticed, that newly added had apache/apache.
So I deleted the MIB, re-downloaded the file keeping it's original name (file and OID inside the file): NAS-MIB.mib.
I corrected the permissions by copying them from other file, here is the result:
Code: Select all
ls -l /usr/share/snmp/mibs/
total 1820
-rw-rw-r-- 1 root nagios 17455 Aug 17 17:57 AGENTX-MIB.txt
-rw-rw-r-- 1 root nagios 50948 Aug 17 17:57 BRIDGE-MIB.txt
-rw-rw-r-- 1 root nagios 68104 Aug 17 17:57 DISMAN-EVENT-MIB.txt
-rw-rw-r-- 1 root nagios 24613 Aug 17 17:57 DISMAN-SCHEDULE-MIB.txt
-rw-rw-r-- 1 root nagios 64311 Aug 17 17:57 DISMAN-SCRIPT-MIB.txt
-rw-rw-r-- 1 root nagios 84492 Aug 17 17:57 EtherLike-MIB.txt
-rw-rw-r-- 1 root nagios 4660 Aug 17 17:57 HCNUM-TC.txt
-rw-rw-r-- 1 root nagios 52544 Aug 17 17:57 HOST-RESOURCES-MIB.txt
-rw-rw-r-- 1 root nagios 10583 Aug 17 17:57 HOST-RESOURCES-TYPES.txt
-rw-rw-r-- 1 root nagios 4819 Aug 17 17:57 IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
-rw-rw-r-- 1 root nagios 29665 Aug 17 17:57 IANAifType-MIB.txt
-rw-rw-r-- 1 root nagios 4299 Aug 17 17:57 IANA-LANGUAGE-MIB.txt
-rw-rw-r-- 1 root nagios 3513 Aug 17 17:57 IANA-RTPROTO-MIB.txt
-rw-rw-r-- 1 root nagios 5066 Aug 17 17:57 IF-INVERTED-STACK-MIB.txt
-rw-rw-r-- 1 root nagios 71691 Aug 17 17:57 IF-MIB.txt
-rw-rw-r-- 1 root nagios 16782 Aug 17 17:57 INET-ADDRESS-MIB.txt
-rw-rw-r-- 1 root nagios 46286 Aug 17 17:57 IP-FORWARD-MIB.txt
-rw-rw-r-- 1 root nagios 185667 Aug 17 17:57 IP-MIB.txt
-rw-rw-r-- 1 root nagios 15936 Aug 17 17:57 IPV6-ICMP-MIB.txt
-rw-rw-r-- 1 root nagios 48703 Aug 17 17:57 IPV6-MIB.txt
-rw-rw-r-- 1 root nagios 7257 Aug 17 17:57 IPV6-TCP-MIB.txt
-rw-rw-r-- 1 root nagios 2367 Aug 17 17:57 IPV6-TC.txt
-rw-rw-r-- 1 root nagios 4400 Aug 17 17:57 IPV6-UDP-MIB.txt
-rw-rw-r-- 1 root nagios 5931 Aug 17 17:57 LM-SENSORS-MIB.txt
-rw-rw-r-- 1 root nagios 42375 Aug 17 17:57 MTA-MIB.txt
-rwxrwxr-x 1 root nagios 19760 Sep 30 12:37 NAGIOS-NOTIFY-MIB.txt
-rwxrwxr-x 1 root nagios 2093 Sep 30 12:37 NAGIOS-ROOT-MIB.txt
[b]-rw-rw-r-- 1 root nagios 24061 Oct 20 10:32 NAS-MIB.mib[/b]
-rw-rw-r-- 1 root nagios 15732 Aug 17 17:57 NET-SNMP-AGENT-MIB.txt
-rw-rw-r-- 1 root nagios 9160 Aug 17 17:57 NET-SNMP-EXAMPLES-MIB.txt
-rw-rw-r-- 1 root nagios 9198 Aug 17 17:57 NET-SNMP-EXTEND-MIB.txt
-rw-rw-r-- 1 root nagios 2036 Aug 17 17:57 NET-SNMP-MIB.txt
-rw-rw-r-- 1 root nagios 3350 Aug 17 17:57 NET-SNMP-PASS-MIB.txt
-rw-rw-r-- 1 root nagios 4686 Aug 17 17:57 NET-SNMP-TC.txt
-rw-rw-r-- 1 root nagios 5039 Aug 17 17:57 NET-SNMP-VACM-MIB.txt
-rw-rw-r-- 1 root nagios 21006 Aug 17 17:57 NETWORK-SERVICES-MIB.txt
-rw-rw-r-- 1 root nagios 24694 Aug 17 17:57 NOTIFICATION-LOG-MIB.txt
-rw-rw-r-- 1 root nagios 3067 Aug 17 17:57 RFC1155-SMI.txt
-rw-rw-r-- 1 root nagios 79667 Aug 17 17:57 RFC1213-MIB.txt
-rw-rw-r-- 1 root nagios 1174 Aug 17 17:57 RFC-1215.txt
-rw-rw-r-- 1 root nagios 147822 Aug 17 17:57 RMON-MIB.txt
-rw-rw-r-- 1 root nagios 45323 Aug 17 17:57 SCTP-MIB.txt
-rw-rw-r-- 1 root nagios 4649 Aug 17 17:57 SMUX-MIB.txt
-rw-rw-r-- 1 root nagios 15490 Aug 17 17:57 SNMP-COMMUNITY-MIB.txt
-rw-rw-r-- 1 root nagios 22342 Aug 17 17:57 SNMP-FRAMEWORK-MIB.txt
-rw-rw-r-- 1 root nagios 5496 Aug 17 17:57 SNMP-MPD-MIB.txt
-rw-rw-r-- 1 root nagios 20014 Aug 17 17:57 SNMP-NOTIFICATION-MIB.txt
-rw-rw-r-- 1 root nagios 9106 Aug 17 17:57 SNMP-PROXY-MIB.txt
-rw-rw-r-- 1 root nagios 22769 Aug 17 17:57 SNMP-TARGET-MIB.txt
-rw-rw-r-- 1 root nagios 39201 Aug 17 17:57 SNMP-USER-BASED-SM-MIB.txt
-rw-rw-r-- 1 root nagios 2205 Aug 17 17:57 SNMP-USM-AES-MIB.txt
-rw-rw-r-- 1 root nagios 21101 Aug 17 17:57 SNMP-USM-DH-OBJECTS-MIB.txt
-rw-rw-r-- 1 root nagios 8263 Aug 17 17:57 SNMPv2-CONF.txt
-rw-rw-r-- 1 root nagios 29305 Aug 17 17:57 SNMPv2-MIB.txt
-rw-rw-r-- 1 root nagios 8924 Aug 17 17:57 SNMPv2-SMI.txt
-rw-rw-r-- 1 root nagios 38034 Aug 17 17:57 SNMPv2-TC.txt
-rw-rw-r-- 1 root nagios 5775 Aug 17 17:57 SNMPv2-TM.txt
-rw-rw-r-- 1 root nagios 34162 Aug 17 17:57 SNMP-VIEW-BASED-ACM-MIB.txt
-rw-rw-r-- 1 root nagios 28564 Aug 17 17:57 TCP-MIB.txt
-rw-rw-r-- 1 root nagios 16418 Aug 17 17:57 TRANSPORT-ADDRESS-MIB.txt
-rw-rw-r-- 1 root nagios 2163 Aug 17 17:57 UCD-DEMO-MIB.txt
-rw-rw-r-- 1 root nagios 4402 Aug 17 17:57 UCD-DISKIO-MIB.txt
-rw-rw-r-- 1 root nagios 3010 Aug 17 17:57 UCD-DLMOD-MIB.txt
-rw-rw-r-- 1 root nagios 8118 Aug 17 17:57 UCD-IPFWACC-MIB.txt
-rw-rw-r-- 1 root nagios 46150 Aug 17 17:57 UCD-SNMP-MIB.txt
-rw-rw-r-- 1 root nagios 20882 Aug 17 17:57 UDP-MIB.txt
I re-run the test, setting 180 timeout and 1000 results.
I've got exactly 26 OID's (exactly as before - I didn't fit them all into the previous screenshot, but they are exactly the same as the result from the cmd in my last post where I set which MIB to use).
I've also tested the wizard with blanking out the OID field, set 180 timeout and 5000 results limit which gave me 1417 results (hanging the web browser).
The MIB To Use column showed: SNMPv2-MIB, IF-MIB, RFC1213-MIB, IP-MIB, IP-FORWARD-MIB, TCP-MIB.