I'm trying to upload new MIB's into NAgios XI, and all I'm getting is this error.
"MIB could not be installed - directory permissions may be incorrect."
any idea of how to fix this.
Can't upload MIB
Re: Can't upload MIB
Can you run the following commands in terminal and show us the output?
Code: Select all
ll /usr/share/snmp
ll /usr/share/snmp/mibsBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Can't upload MIB
I have the same problem:lmiltchev wrote:Can you run the following commands in terminal and show us the output?
Code: Select all
ll /usr/share/snmp ll /usr/share/snmp/mibs
[root@itg-nagiosxi ~]# ll /usr/share/snmp
total 296
-rw-r--r-- 1 root root 6678 Dec 19 20:39 mib2c.access_functions.conf
-rw-r--r-- 1 root root 37814 Dec 19 20:39 mib2c.array-user.conf
-rw-r--r-- 1 root root 4705 Dec 19 20:39 mib2c.check_values.conf
-rw-r--r-- 1 root root 2527 Dec 19 20:39 mib2c.check_values_local.conf
-rw-r--r-- 1 root root 393 Dec 19 20:39 mib2c.column_defines.conf
-rw-r--r-- 1 root root 664 Dec 19 20:39 mib2c.column_enums.conf
-rw-r--r-- 1 root root 806 Dec 19 20:39 mib2c.column_storage.conf
-rw-r--r-- 1 root root 12200 Dec 19 20:39 mib2c.conf
-rw-r--r-- 1 root root 28245 Dec 19 20:39 mib2c.container.conf
-rw-r--r-- 1 root root 3593 Dec 19 20:39 mib2c.create-dataset.conf
drwxr-xr-x 2 root root 4096 Jan 27 13:54 mib2c-data
-rw-r--r-- 1 root root 8164 Dec 19 20:39 mib2c.emulation.conf
-rw-r--r-- 1 root root 8498 Dec 19 20:39 mib2c.genhtml.conf
-rw-r--r-- 1 root root 3200 Dec 19 20:39 mib2c.int_watch.conf
-rw-r--r-- 1 root root 15279 Dec 19 20:39 mib2c.iterate_access.conf
-rw-r--r-- 1 root root 20913 Dec 19 20:39 mib2c.iterate.conf
-rw-r--r-- 1 root root 1014 Dec 19 20:39 mib2c.mfd.conf
-rw-r--r-- 1 root root 2139 Dec 19 20:39 mib2c.notify.conf
-rw-r--r-- 1 root root 9259 Dec 19 20:39 mib2c.old-api.conf
-rw-r--r-- 1 root root 8777 Dec 19 20:39 mib2c.perl.conf
-rw-r--r-- 1 root root 19507 Dec 19 20:39 mib2c.raw-table.conf
-rw-r--r-- 1 root root 7211 Dec 19 20:39 mib2c.row.conf
-rw-r--r-- 1 root root 4572 Dec 19 20:39 mib2c.scalar.conf
-rw-r--r-- 1 root root 20422 Dec 19 20:39 mib2c.table_data.conf
drwxr-xr-x. 2 root root 12288 Jan 27 13:54 mibs
drwxr-xr-x. 5 root root 4096 Dec 19 20:39 snmpconf-data
-rw-r--r-- 1 root root 145 Dec 19 20:39 snmp_perl.pl
-rw-r--r-- 1 root root 431 Dec 19 20:39 snmp_perl_trapd.pl
[root@itg-nagiosxi ~]# ll /usr/share/snmp/mibs/
total 7412
-rw-r--r-- 1 root root 17455 Dec 19 20:39 AGENTX-MIB.txt
-rw-r--r-- 1 root root 50948 Dec 19 20:39 BRIDGE-MIB.txt
-rw-r--r-- 1 root root 68104 Dec 19 20:39 DISMAN-EVENT-MIB.txt
-rw-r--r-- 1 root root 24613 Dec 19 20:39 DISMAN-SCHEDULE-MIB.txt
-rw-r--r-- 1 root root 64311 Dec 19 20:39 DISMAN-SCRIPT-MIB.txt
-rw-r--r-- 1 root root 84492 Dec 19 20:39 EtherLike-MIB.txt
-rw-r--r-- 1 root root 4660 Dec 19 20:39 HCNUM-TC.txt
-rw-r--r-- 1 root root 52544 Dec 19 20:39 HOST-RESOURCES-MIB.txt
-rw-r--r-- 1 root root 10583 Dec 19 20:39 HOST-RESOURCES-TYPES.txt
-rw-r--r-- 1 root nagios 4605 Oct 14 2011 hpEntityPower.mib.txt
-rw-r--r-- 1 root nagios 32254 Oct 14 2011 hpHttpMg.mib.txt
-rw-r--r-- 1 root nagios 7416 Oct 14 2011 hpicfAcct.mib.txt
-rw-r--r-- 1 root nagios 17757 Oct 14 2011 hpicfArpProtect.mib.txt
-rw-r--r-- 1 root nagios 93502 Oct 14 2011 hpicfAuth.mib.txt
-rw-r--r-- 1 root nagios 2892 Oct 14 2011 hpicfAutorun.mib.txt
-rw-r--r-- 1 root nagios 17467 Oct 14 2011 hpicfAutz.mib.txt
-rw-r--r-- 1 root nagios 95021 Oct 14 2011 hpicfBasic.mib.txt
-rw-r--r-- 1 root nagios 47632 Oct 24 07:03 hpicfBridge.mib.txt
-rw-r--r-- 1 root nagios 14105 Oct 14 2011 hpicfChain.mib.txt
-rw-r--r-- 1 root nagios 33773 Oct 21 2011 hpicfChassis.mib.txt
-rw-r--r-- 1 root nagios 9555 Oct 14 2011 hpicfConnectionRateFilter.mib.txt
-rw-r--r-- 1 root nagios 5056 Oct 14 2011 hpicfCoreDump.mib.txt
-rw-r--r-- 1 root nagios 7768 Oct 14 2011 hpicfDcFan.mib.txt
-rw-r--r-- 1 root nagios 5664 Oct 14 2011 hpicfDcPower.mib.txt
-rw-r--r-- 1 root nagios 10016 Oct 14 2011 hpicfDebugLog.mib.txt
-rw-r--r-- 1 root nagios 10319 Oct 14 2011 hpicfDhcpClient.mib.txt
-rw-r--r-- 1 root nagios 38315 Oct 14 2011 hpicfDhcpSnoop.mib.txt
-rw-r--r-- 1 root nagios 8756 Oct 14 2011 hpicfDhcpv6Relay.mib.txt
-rw-r--r-- 1 root nagios 2279 Oct 14 2011 hpicfDosFilter.mib.txt
-rw-r--r-- 1 root nagios 50170 Oct 14 2011 hpicfDot1x.mib.txt
-rw-r--r-- 1 root nagios 57065 Oct 14 2011 hpicfDownload.mib.txt
-rw-r--r-- 1 root nagios 26177 Oct 14 2011 hpicfFf.mib.txt
-rw-r--r-- 1 root nagios 15127 Oct 14 2011 hpicfFtrCo.mib.txt
-rw-r--r-- 1 root nagios 3676 Oct 14 2011 hpicfGenericVlan.mib.txt
-rw-r--r-- 1 root nagios 25506 Oct 14 2011 hpicfGppc.mib.txt
-rw-r--r-- 1 root nagios 33175 Oct 14 2011 hpicfGppcv2.mib.txt
-rw-r--r-- 1 root nagios 16183 Oct 14 2011 hpicfHighAvailability.mib.txt
-rw-r--r-- 1 root nagios 7628 Oct 14 2011 hpicfInstMon.mib.txt
-rw-r--r-- 1 root nagios 44074 Oct 14 2011 hpicfIpAddress.mib.txt
-rw-r--r-- 1 root nagios 17661 Oct 14 2011 hpicfIpLockdown.mib.txt
-rw-r--r-- 1 root nagios 60762 Oct 14 2011 hpicfIpRoute.mib.txt
-rw-r--r-- 1 root nagios 4315 Oct 14 2011 hpicfJumbo.mib.txt
-rw-r--r-- 1 root nagios 4389 Oct 14 2011 hpicfL3MacConfig.mib.txt
-rw-r--r-- 1 root nagios 4627 Oct 14 2011 hpicfLayer3Vlan.mib.txt
-rw-r--r-- 1 root nagios 16760 Oct 14 2011 hpicfLinktest.mib.txt
-rw-r--r-- 1 root nagios 18387 Oct 14 2011 hpicfLoadBalance.mib.txt
-rw-r--r-- 1 root nagios 17195 Oct 14 2011 hpicfMacNotify.mib.txt
-rw-r--r-- 1 root nagios 64756 Oct 14 2011 hpicfMld.mib.txt
-rw-r--r-- 1 root nagios 138543 Oct 21 2011 hpicfOid.mib.txt
-rw-r--r-- 1 root nagios 11769 Oct 14 2011 hpicfOobm.mib.txt
-rw-r--r-- 1 root nagios 73430 Oct 14 2011 hpicfOspf.mib.txt
-rw-r--r-- 1 root nagios 34368 Oct 14 2011 hpicfPim.mib.txt
-rw-r--r-- 1 root nagios 20335 Oct 14 2011 hpicfPoe.mib.txt
-rw-r--r-- 1 root nagios 9490 Oct 14 2011 hpicfProviderBridge.mib.txt
-rw-r--r-- 1 root nagios 52730 Oct 14 2011 hpicfRateLimit.mib.txt
-rw-r--r-- 1 root nagios 9223 Oct 14 2011 hpicfReload.mib.txt
-rw-r--r-- 1 root nagios 10981 Oct 14 2011 hpicfRip.mib.txt
-rw-r--r-- 1 root nagios 16317 Oct 14 2011 hpicfSavepower.mib.txt
-rw-r--r-- 1 root nagios 34332 Oct 14 2011 hpicfSecurity.mib.txt
-rw-r--r-- 1 root nagios 23171 Oct 14 2011 hpicfSnmp.mib.txt
-rw-r--r-- 1 root nagios 24775 Oct 14 2011 hpicfSntp.mib.txt
-rw-r--r-- 1 root nagios 8402 Oct 14 2011 hpicfSrcIp.mib.txt
-rw-r--r-- 1 root nagios 8349 Oct 14 2011 hpicfStack.mib.txt
-rw-r--r-- 1 root nagios 48630 Oct 14 2011 hpicfSyslog.mib.txt
-rw-r--r-- 1 root nagios 6268 Oct 14 2011 hpicfTC.mib.txt
-rw-r--r-- 1 root nagios 2322 Oct 14 2011 hpicfTcp.mib.txt
-rw-r--r-- 1 root nagios 52923 Oct 21 2011 hpicfTransceiver.mib.txt
-rw-r--r-- 1 root nagios 12027 Oct 14 2011 hpicfUdld.mib.txt
-rw-r--r-- 1 root nagios 8737 Oct 14 2011 hpicfUdpForward.mib.txt
-rw-r--r-- 1 root nagios 10974 Oct 14 2011 hpicfUfd.mib.txt
-rw-r--r-- 1 root nagios 4630 Oct 14 2011 hpicfUSBPort.mib.txt
-rw-r--r-- 1 root nagios 73402 Oct 14 2011 hpicfUsrAuth.mib.txt
-rw-r--r-- 1 root nagios 45677 Oct 14 2011 hpicfUsrProf.mib.txt
-rw-r--r-- 1 root nagios 20327 Oct 14 2011 hpicfVrrp.mib.txt
-rw-r--r-- 1 root nagios 40101 Oct 14 2011 hpicfXrrp.mib.txt
-rw-r--r-- 1 root nagios 16882 Oct 14 2011 hpNetSwitch.mib.txt
-rw-r--r-- 1 root nagios 34925 Oct 14 2011 hpStack.mib.txt
-rw-r--r-- 1 root nagios 38226 Oct 14 2011 hpSwitchBasicConfig.mib.txt
-rw-r--r-- 1 root nagios 136955 Oct 21 2011 hpSwitchConfig.mib.txt
-rw-r--r-- 1 root nagios 20990 Oct 21 2011 hpSwitchDistributedTrunk.mib.txt
-rw-r--r-- 1 root nagios 7947 Oct 14 2011 hpSwitchDma.mib.txt
-rw-r--r-- 1 root nagios 21350 Oct 14 2011 hpSwitchDrivers.mib.txt
-rw-r--r-- 1 root nagios 7075 Oct 14 2011 hpSwitchErrorMsg.mib.txt
-rw-r--r-- 1 root nagios 13989 Oct 14 2011 hpSwitchImage.mib.txt
-rw-r--r-- 1 root nagios 22942 Oct 14 2011 hpSwitchStack.mib.txt
-rw-r--r-- 1 root nagios 57988 Oct 14 2011 hpSwitchStat.mib.txt
-rw-r--r-- 1 root nagios 7471 Oct 14 2011 hpTunnel.mib.txt
-rw-r--r-- 1 root nagios 15739 Oct 14 2011 hpVlan.mib.txt
-rw-r--r-- 1 root root 4819 Dec 19 20:39 IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
-rw-r--r-- 1 root nagios 4753 Oct 14 2011 ianaAFN.mib.txt
-rw-r--r-- 1 root nagios 24926 Oct 14 2011 ianaiftype.mib.txt
-rw-r--r-- 1 root root 29665 Dec 19 20:39 IANAifType-MIB.txt
-rw-r--r-- 1 root nagios 3521 Oct 14 2011 ianaiprouteprotocol.mib.txt
-rw-r--r-- 1 root root 4299 Dec 19 20:39 IANA-LANGUAGE-MIB.txt
-rw-r--r-- 1 root root 3513 Dec 19 20:39 IANA-RTPROTO-MIB.txt
-rw-r--r-- 1 root nagios 95849 Oct 14 2011 ieee80211.mib.txt
-rw-r--r-- 1 root nagios 49402 Oct 14 2011 ieee8021mstp.mib.txt
-rw-r--r-- 1 root nagios 47008 Oct 14 2011 ieee8021pae.mib.txt
-rw-r--r-- 1 root nagios 16083 Oct 14 2011 ieee8021tc.mib.txt
-rw-r--r-- 1 root nagios 44558 Oct 14 2011 ieee8023lag.mib.txt
-rw-r--r-- 1 root nagios 23529 Oct 14 2011 ieee802af.mib.txt
-rw-r--r-- 1 root root 5066 Dec 19 20:39 IF-INVERTED-STACK-MIB.txt
-rw-r--r-- 1 root root 71691 Dec 19 20:39 IF-MIB.txt
-rw-r--r-- 1 root root 16782 Dec 19 20:39 INET-ADDRESS-MIB.txt
-rw-r--r-- 1 root root 46286 Dec 19 20:39 IP-FORWARD-MIB.txt
-rw-r--r-- 1 root root 185667 Dec 19 20:39 IP-MIB.txt
-rw-r--r-- 1 root root 15936 Dec 19 20:39 IPV6-ICMP-MIB.txt
-rw-r--r-- 1 root root 48703 Dec 19 20:39 IPV6-MIB.txt
-rw-r--r-- 1 root root 7257 Dec 19 20:39 IPV6-TCP-MIB.txt
-rw-r--r-- 1 root root 2367 Dec 19 20:39 IPV6-TC.txt
-rw-r--r-- 1 root root 4400 Dec 19 20:39 IPV6-UDP-MIB.txt
-rw-r--r-- 1 root nagios 30182 Oct 14 2011 lldp_dot3.mib.txt
-rw-r--r-- 1 root nagios 59641 Oct 14 2011 lldp_med.mib.txt
-rw-r--r-- 1 root nagios 77320 Oct 14 2011 lldp.mib.txt
-rw-r--r-- 1 root root 5931 Dec 19 20:39 LM-SENSORS-MIB.txt
-rw-r--r-- 1 root root 42375 Dec 19 20:39 MTA-MIB.txt
-rw-r--r-- 1 root nagios 19760 Aug 29 2011 NAGIOS-NOTIFY-MIB.txt
-rw-r--r-- 1 root nagios 2093 Aug 29 2011 NAGIOS-ROOT-MIB.txt
-rw-r--r-- 1 root root 15732 Dec 19 20:39 NET-SNMP-AGENT-MIB.txt
-rw-r--r-- 1 root root 9160 Dec 19 20:39 NET-SNMP-EXAMPLES-MIB.txt
-rw-r--r-- 1 root root 9198 Dec 19 20:39 NET-SNMP-EXTEND-MIB.txt
-rw-r--r-- 1 root root 2036 Dec 19 20:39 NET-SNMP-MIB.txt
-rw-r--r-- 1 root root 3351 Dec 19 20:39 NET-SNMP-PASS-MIB.txt
-rw-r--r-- 1 root root 4686 Dec 19 20:39 NET-SNMP-TC.txt
-rw-r--r-- 1 root root 5039 Dec 19 20:39 NET-SNMP-VACM-MIB.txt
-rw-r--r-- 1 root root 21006 Dec 19 20:39 NETWORK-SERVICES-MIB.txt
-rw-r--r-- 1 root root 24694 Dec 19 20:39 NOTIFICATION-LOG-MIB.txt
-rw-r--r-- 1 root root 3067 Dec 19 20:39 RFC1155-SMI.txt
-rw-r--r-- 1 root nagios 103000 Oct 14 2011 rfc1213.mib.txt
-rw-r--r-- 1 root root 79667 Dec 19 20:39 RFC1213-MIB.txt
-rw-r--r-- 1 root root 1174 Dec 19 20:39 RFC-1215.txt
-rw-r--r-- 1 root nagios 46695 Oct 14 2011 rfc1493.mib.txt
-rw-r--r-- 1 root nagios 89455 Oct 14 2011 rfc1512.mib.txt
-rw-r--r-- 1 root nagios 99833 Oct 14 2011 rfc1513.mib.txt
-rw-r--r-- 1 root nagios 16732 Oct 14 2011 rfc1724.mib.txt
-rw-r--r-- 1 root nagios 132878 Oct 14 2011 rfc1742.mib.txt
-rw-r--r-- 1 root nagios 5647 Oct 14 2011 rfc1749.mib.txt
-rw-r--r-- 1 root nagios 16140 Oct 14 2011 rfc1850b.mib.txt
-rw-r--r-- 1 root nagios 86520 Oct 14 2011 rfc1850.mib.txt
-rw-r--r-- 1 root nagios 184938 Oct 14 2011 rfc2011D10.mib.txt
-rw-r--r-- 1 root nagios 10802 Oct 14 2011 rfc2012.mib.txt
-rw-r--r-- 1 root nagios 4100 Oct 14 2011 rfc2013.mib.txt
-rw-r--r-- 1 root nagios 36158 Oct 14 2011 rfc2020.mib.txt
-rw-r--r-- 1 root nagios 6475 Oct 14 2011 rfc2021.mib.txt
-rw-r--r-- 1 root nagios 50691 Oct 14 2011 rfc2096-07.mib.txt
-rw-r--r-- 1 root nagios 131348 Oct 14 2011 rfc2108.mib.txt
-rw-r--r-- 1 root nagios 94103 Oct 14 2011 rfc2266.mib.txt
-rw-r--r-- 1 root nagios 17748 Oct 14 2011 rfc2576.mib.txt
-rw-r--r-- 1 root nagios 1087 Oct 14 2011 rfc2578.mib.txt
-rw-r--r-- 1 root nagios 37003 Oct 14 2011 rfc2579.mib.txt
-rw-r--r-- 1 root nagios 47210 Oct 14 2011 rfc2613.mib.txt
-rw-r--r-- 1 root nagios 11281 Oct 14 2011 rfc2618.mib.txt
-rw-r--r-- 1 root nagios 10121 Oct 14 2011 rfc2620.mib.txt
-rw-r--r-- 1 root nagios 52981 Oct 14 2011 rfc2665.mib.txt
-rw-r--r-- 1 root nagios 32465 Oct 14 2011 rfc2674_p.mib.txt
-rw-r--r-- 1 root nagios 66970 Oct 14 2011 rfc2674_q.mib.txt
-rw-r--r-- 1 root nagios 52608 Oct 14 2011 rfc2737.mib.txt
-rw-r--r-- 1 root nagios 26693 Oct 14 2011 rfc2787.mib.txt
-rw-r--r-- 1 root nagios 151321 Oct 14 2011 rfc2819.mib.txt
-rw-r--r-- 1 root nagios 4954 Oct 14 2011 rfc2856.mib.txt
-rw-r--r-- 1 root nagios 71751 Oct 14 2011 rfc2863.mib.txt
-rw-r--r-- 1 root nagios 40800 Oct 14 2011 rfc2925a.mib.txt
-rw-r--r-- 1 root nagios 36539 Oct 14 2011 rfc2932.mib.txt
-rw-r--r-- 1 root nagios 17345 Oct 14 2011 rfc2933.mib.txt
-rw-r--r-- 1 root nagios 29390 Oct 14 2011 rfc2934.mib.txt
-rw-r--r-- 1 root nagios 14764 Oct 14 2011 rfc3019.mib.txt
-rw-r--r-- 1 root nagios 123169 Oct 14 2011 rfc3273.mib.txt
-rw-r--r-- 1 root nagios 1869 Oct 14 2011 rfc3289.mib.txt
-rw-r--r-- 1 root nagios 17649 Oct 14 2011 rfc3291D06.mib.txt
-rw-r--r-- 1 root nagios 22340 Oct 14 2011 rfc3411.mib.txt
-rw-r--r-- 1 root nagios 5854 Oct 14 2011 rfc3412.mib.txt
-rw-r--r-- 1 root nagios 24413 Oct 14 2011 rfc3413a.mib.txt
-rw-r--r-- 1 root nagios 21537 Oct 14 2011 rfc3413b.mib.txt
-rw-r--r-- 1 root nagios 39194 Oct 14 2011 rfc3414.mib.txt
-rw-r--r-- 1 root nagios 34154 Oct 14 2011 rfc3415.mib.txt
-rw-r--r-- 1 root nagios 6211 Oct 14 2011 rfc3417.mib.txt
-rw-r--r-- 1 root nagios 31542 Oct 14 2011 rfc3418.mib.txt
-rw-r--r-- 1 root nagios 16441 Oct 14 2011 rfc3419.mib.txt
-rw-r--r-- 1 root nagios 16145 Oct 14 2011 rfc3433.mib.txt
-rw-r--r-- 1 root nagios 2169 Oct 14 2011 rfc3595.mib.txt
-rw-r--r-- 1 root nagios 105002 Oct 14 2011 rfc3636.mib.txt
-rw-r--r-- 1 root nagios 28640 Oct 14 2011 rfc4022.mib.txt
-rw-r--r-- 1 root nagios 29748 Oct 14 2011 rfc4087.mib.txt
-rw-r--r-- 1 root nagios 20913 Oct 14 2011 rfc4113.mib.txt
-rw-r--r-- 1 root nagios 18424 Oct 14 2011 rfc4268.mib.txt
-rw-r--r-- 1 root nagios 29248 Oct 14 2011 rfc4673.mib.txt
-rw-r--r-- 1 root nagios 141580 Oct 14 2011 rfc4750.mib.txt
-rw-r--r-- 1 root nagios 55837 Oct 14 2011 rfc5519.mib.txt
-rw-r--r-- 1 root nagios 155139 Oct 14 2011 rfc5643.mib.txt
-rw-r--r-- 1 root root 147822 Dec 19 20:39 RMON-MIB.txt
-rw-r--r-- 1 root root 45323 Dec 19 20:39 SCTP-MIB.txt
-rw-r--r-- 1 root nagios 25951 Oct 14 2011 sflow.mib.txt
-rw-r--r-- 1 root root 4595 Dec 19 20:39 SMUX-MIB.txt
-rw-r--r-- 1 root root 15490 Dec 19 20:39 SNMP-COMMUNITY-MIB.txt
-rw-r--r-- 1 root root 22342 Dec 19 20:39 SNMP-FRAMEWORK-MIB.txt
-rw-r--r-- 1 root root 5496 Dec 19 20:39 SNMP-MPD-MIB.txt
-rw-r--r-- 1 root root 20014 Dec 19 20:39 SNMP-NOTIFICATION-MIB.txt
-rw-r--r-- 1 root root 9106 Dec 19 20:39 SNMP-PROXY-MIB.txt
-rw-r--r-- 1 root root 22769 Dec 19 20:39 SNMP-TARGET-MIB.txt
-rw-r--r-- 1 root root 39201 Dec 19 20:39 SNMP-USER-BASED-SM-MIB.txt
-rw-r--r-- 1 root root 2205 Dec 19 20:39 SNMP-USM-AES-MIB.txt
-rw-r--r-- 1 root root 21101 Dec 19 20:39 SNMP-USM-DH-OBJECTS-MIB.txt
-rw-r--r-- 1 root root 8263 Dec 19 20:39 SNMPv2-CONF.txt
-rw-r--r-- 1 root root 29305 Dec 19 20:39 SNMPv2-MIB.txt
-rw-r--r-- 1 root root 8924 Dec 19 20:39 SNMPv2-SMI.txt
-rw-r--r-- 1 root root 38034 Dec 19 20:39 SNMPv2-TC.txt
-rw-r--r-- 1 root root 5775 Dec 19 20:39 SNMPv2-TM.txt
-rw-r--r-- 1 root root 34162 Dec 19 20:39 SNMP-VIEW-BASED-ACM-MIB.txt
-rw-r--r-- 1 root root 28564 Dec 19 20:39 TCP-MIB.txt
-rw-r--r-- 1 root root 16418 Dec 19 20:39 TRANSPORT-ADDRESS-MIB.txt
-rw-r--r-- 1 root root 2163 Dec 19 20:39 UCD-DEMO-MIB.txt
-rw-r--r-- 1 root root 4402 Dec 19 20:39 UCD-DISKIO-MIB.txt
-rw-r--r-- 1 root root 3010 Dec 19 20:39 UCD-DLMOD-MIB.txt
-rw-r--r-- 1 root root 8118 Dec 19 20:39 UCD-IPFWACC-MIB.txt
-rw-r--r-- 1 root root 46150 Dec 19 20:39 UCD-SNMP-MIB.txt
-rw-r--r-- 1 root root 20882 Dec 19 20:39 UDP-MIB.txt
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Can't upload MIB
Yep, this is a permissions problem, run
Then you should be able to upload your mibs
Code: Select all
chown root:nagios /usr/share/snmp/mibs
chmod g+w /usr/share/snmp/mibsRe: Can't upload MIB
Confirmed
Works for me now
Works for me now
Re: Can't upload MIB
I'd like to throw in a "me too" on this one... I'm trying to add an APC .mib file for my UPS and PDU units. My permissions show a little different than the previous poster:
Thanks!
[root@nagios snmp]# ls -al /usr/share/snmp
total 16
drwxr-xr-x. 4 root root 4096 Nov 14 12:40 .
drwxr-xr-x. 119 root root 4096 Nov 14 12:45 ..
drwxrwsr-x. 2 root nagios 4096 Nov 14 12:40 mibs
drwxr-xr-x. 5 root root 4096 Nov 14 12:40 snmpconf-data
So I've already got the g+w permission on the mibs directory (along with the sticky bit?), but I still can't upload through the Nagios web interface. What else can I check?[root@nagios snmp]# ls -al /usr/share/snmp/mibs
total 1780
drwxrwsr-x. 2 root nagios 4096 Nov 14 12:40 .
drwxr-xr-x. 4 root root 4096 Nov 14 12:40 ..
-rw-rw-r--. 1 root nagios 17455 Jul 23 02:09 AGENTX-MIB.txt
-rw-rw-r--. 1 root nagios 50948 Jul 23 02:09 BRIDGE-MIB.txt
-rw-rw-r--. 1 root nagios 68104 Jul 23 02:09 DISMAN-EVENT-MIB.txt
-rw-rw-r--. 1 root nagios 24613 Jul 23 02:09 DISMAN-SCHEDULE-MIB.txt
<snip bunch of .txt files with exact same permissions>
Thanks!
Re: Can't upload MIB
Hate to dig this one up but I'm experiencing the same problem... and with APC MIB's too.
Permissions have been configured according to the previous replied. Here is the 'll' on the two directories, any ideas?
Permissions have been configured according to the previous replied. Here is the 'll' on the two directories, any ideas?
[root@nagios adLDAP]# ll /usr/share/snmp/
total 288
-rw-r--r-- 1 root root 6678 Feb 21 17:33 mib2c.access_functions.conf
-rw-r--r-- 1 root root 37814 Feb 21 17:33 mib2c.array-user.conf
-rw-r--r-- 1 root root 4705 Feb 21 17:33 mib2c.check_values.conf
-rw-r--r-- 1 root root 2527 Feb 21 17:33 mib2c.check_values_local.conf
-rw-r--r-- 1 root root 393 Feb 21 17:33 mib2c.column_defines.conf
-rw-r--r-- 1 root root 664 Feb 21 17:33 mib2c.column_enums.conf
-rw-r--r-- 1 root root 806 Feb 21 17:33 mib2c.column_storage.conf
-rw-r--r-- 1 root root 12200 Feb 21 17:33 mib2c.conf
-rw-r--r-- 1 root root 28245 Feb 21 17:33 mib2c.container.conf
-rw-r--r-- 1 root root 3593 Feb 21 17:33 mib2c.create-dataset.conf
drwxr-xr-x 2 root root 4096 Mar 20 11:43 mib2c-data
-rw-r--r-- 1 root root 8164 Feb 21 17:33 mib2c.emulation.conf
-rw-r--r-- 1 root root 8498 Feb 21 17:33 mib2c.genhtml.conf
-rw-r--r-- 1 root root 3200 Feb 21 17:33 mib2c.int_watch.conf
-rw-r--r-- 1 root root 15279 Feb 21 17:33 mib2c.iterate_access.conf
-rw-r--r-- 1 root root 20913 Feb 21 17:33 mib2c.iterate.conf
-rw-r--r-- 1 root root 1014 Feb 21 17:33 mib2c.mfd.conf
-rw-r--r-- 1 root root 2139 Feb 21 17:33 mib2c.notify.conf
-rw-r--r-- 1 root root 9259 Feb 21 17:33 mib2c.old-api.conf
-rw-r--r-- 1 root root 8777 Feb 21 17:33 mib2c.perl.conf
-rw-r--r-- 1 root root 19507 Feb 21 17:33 mib2c.raw-table.conf
-rw-r--r-- 1 root root 7211 Feb 21 17:33 mib2c.row.conf
-rw-r--r-- 1 root root 4572 Feb 21 17:33 mib2c.scalar.conf
-rw-r--r-- 1 root root 20422 Feb 21 17:33 mib2c.table_data.conf
drwxr-xr-x. 2 root nagios 4096 Mar 20 11:43 mibs
drwxr-xr-x. 5 root root 4096 Feb 21 17:33 snmpconf-data
-rw-r--r-- 1 root root 145 Feb 21 17:33 snmp_perl.pl
-rw-r--r-- 1 root root 431 Feb 21 17:33 snmp_perl_trapd.pl
[root@nagios adLDAP]# ll /usr/share/snmp/mibs
total 1796
-rw-r--r-- 1 root root 17455 Feb 21 17:33 AGENTX-MIB.txt
-rw-r--r-- 1 root root 50948 Feb 21 17:33 BRIDGE-MIB.txt
-rw-r--r-- 1 root root 68104 Feb 21 17:33 DISMAN-EVENT-MIB.txt
-rw-r--r-- 1 root root 24613 Feb 21 17:33 DISMAN-SCHEDULE-MIB.txt
-rw-r--r-- 1 root root 64311 Feb 21 17:33 DISMAN-SCRIPT-MIB.txt
-rw-r--r-- 1 root root 84492 Feb 21 17:33 EtherLike-MIB.txt
-rw-r--r-- 1 root root 4660 Feb 21 17:33 HCNUM-TC.txt
-rw-r--r-- 1 root root 52544 Feb 21 17:33 HOST-RESOURCES-MIB.txt
-rw-r--r-- 1 root root 10583 Feb 21 17:33 HOST-RESOURCES-TYPES.txt
-rw-r--r-- 1 root root 4819 Feb 21 17:33 IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt
-rw-r--r-- 1 root root 29665 Feb 21 17:33 IANAifType-MIB.txt
-rw-r--r-- 1 root root 4299 Feb 21 17:33 IANA-LANGUAGE-MIB.txt
-rw-r--r-- 1 root root 3513 Feb 21 17:33 IANA-RTPROTO-MIB.txt
-rw-r--r-- 1 root root 5066 Feb 21 17:33 IF-INVERTED-STACK-MIB.txt
-rw-r--r-- 1 root root 71691 Feb 21 17:33 IF-MIB.txt
-rw-r--r-- 1 root root 16782 Feb 21 17:33 INET-ADDRESS-MIB.txt
-rw-r--r-- 1 root root 46286 Feb 21 17:33 IP-FORWARD-MIB.txt
-rw-r--r-- 1 root root 185667 Feb 21 17:33 IP-MIB.txt
-rw-r--r-- 1 root root 15936 Feb 21 17:33 IPV6-ICMP-MIB.txt
-rw-r--r-- 1 root root 48703 Feb 21 17:33 IPV6-MIB.txt
-rw-r--r-- 1 root root 7257 Feb 21 17:33 IPV6-TCP-MIB.txt
-rw-r--r-- 1 root root 2367 Feb 21 17:33 IPV6-TC.txt
-rw-r--r-- 1 root root 4400 Feb 21 17:33 IPV6-UDP-MIB.txt
-rw-r--r-- 1 root root 5931 Feb 21 17:33 LM-SENSORS-MIB.txt
-rw-r--r-- 1 root root 42375 Feb 21 17:33 MTA-MIB.txt
-rw-rw---- 1 root nagios 19760 Jun 11 2012 NAGIOS-NOTIFY-MIB.txt
-rw-rw---- 1 root nagios 2093 Jun 11 2012 NAGIOS-ROOT-MIB.txt
-rw-r--r-- 1 root root 15732 Feb 21 17:33 NET-SNMP-AGENT-MIB.txt
-rw-r--r-- 1 root root 9160 Feb 21 17:33 NET-SNMP-EXAMPLES-MIB.txt
-rw-r--r-- 1 root root 9198 Feb 21 17:33 NET-SNMP-EXTEND-MIB.txt
-rw-r--r-- 1 root root 2036 Feb 21 17:33 NET-SNMP-MIB.txt
-rw-r--r-- 1 root root 3351 Feb 21 17:33 NET-SNMP-PASS-MIB.txt
-rw-r--r-- 1 root root 4686 Feb 21 17:33 NET-SNMP-TC.txt
-rw-r--r-- 1 root root 5039 Feb 21 17:33 NET-SNMP-VACM-MIB.txt
-rw-r--r-- 1 root root 21006 Feb 21 17:33 NETWORK-SERVICES-MIB.txt
-rw-r--r-- 1 root root 24694 Feb 21 17:33 NOTIFICATION-LOG-MIB.txt
-rw-r--r-- 1 root root 3067 Feb 21 17:33 RFC1155-SMI.txt
-rw-r--r-- 1 root root 79667 Feb 21 17:33 RFC1213-MIB.txt
-rw-r--r-- 1 root root 1174 Feb 21 17:33 RFC-1215.txt
-rw-r--r-- 1 root root 147822 Feb 21 17:33 RMON-MIB.txt
-rw-r--r-- 1 root root 45323 Feb 21 17:33 SCTP-MIB.txt
-rw-r--r-- 1 root root 4595 Feb 21 17:33 SMUX-MIB.txt
-rw-r--r-- 1 root root 15490 Feb 21 17:33 SNMP-COMMUNITY-MIB.txt
-rw-r--r-- 1 root root 22342 Feb 21 17:33 SNMP-FRAMEWORK-MIB.txt
-rw-r--r-- 1 root root 5496 Feb 21 17:33 SNMP-MPD-MIB.txt
-rw-r--r-- 1 root root 20014 Feb 21 17:33 SNMP-NOTIFICATION-MIB.txt
-rw-r--r-- 1 root root 9106 Feb 21 17:33 SNMP-PROXY-MIB.txt
-rw-r--r-- 1 root root 22769 Feb 21 17:33 SNMP-TARGET-MIB.txt
-rw-r--r-- 1 root root 39201 Feb 21 17:33 SNMP-USER-BASED-SM-MIB.txt
-rw-r--r-- 1 root root 2205 Feb 21 17:33 SNMP-USM-AES-MIB.txt
-rw-r--r-- 1 root root 21101 Feb 21 17:33 SNMP-USM-DH-OBJECTS-MIB.txt
-rw-r--r-- 1 root root 8263 Feb 21 17:33 SNMPv2-CONF.txt
-rw-r--r-- 1 root root 29305 Feb 21 17:33 SNMPv2-MIB.txt
-rw-r--r-- 1 root root 8924 Feb 21 17:33 SNMPv2-SMI.txt
-rw-r--r-- 1 root root 38034 Feb 21 17:33 SNMPv2-TC.txt
-rw-r--r-- 1 root root 5775 Feb 21 17:33 SNMPv2-TM.txt
-rw-r--r-- 1 root root 34162 Feb 21 17:33 SNMP-VIEW-BASED-ACM-MIB.txt
-rw-r--r-- 1 root root 28564 Feb 21 17:33 TCP-MIB.txt
-rw-r--r-- 1 root root 16418 Feb 21 17:33 TRANSPORT-ADDRESS-MIB.txt
-rw-r--r-- 1 root root 2163 Feb 21 17:33 UCD-DEMO-MIB.txt
-rw-r--r-- 1 root root 4402 Feb 21 17:33 UCD-DISKIO-MIB.txt
-rw-r--r-- 1 root root 3010 Feb 21 17:33 UCD-DLMOD-MIB.txt
-rw-r--r-- 1 root root 8118 Feb 21 17:33 UCD-IPFWACC-MIB.txt
-rw-r--r-- 1 root root 46150 Feb 21 17:33 UCD-SNMP-MIB.txt
-rw-r--r-- 1 root root 20882 Feb 21 17:33 UDP-MIB.txt