Ubuntu snmp Problems

Source: Internet
Author: User
Tags snmp snmpwalk

Ubuntu 12.04 didn't install the MIB files. even if you install the SNMP applications. just check the preamble of/etc/snmp. conf # As the snmp packages come without MIB files due to license reasons, loading # of MIBs is disabled by default. if you added the MIBs you can reenable # loaging them by commenting out of the following line. mibs: Sure, but how can I install them? Fortunately there is a package to deal with that. $ sudo apt-get install snmp-mibs-downloader It will download the ietf mib files and install them under the usual/usr/share/mibs/If for any reason you don't see it happen force it with $ sudo download-mibs You can repeat this command later to update any new MIB file. test snmpwalk-v 2c-c public localhostUnlinked OID in IPATM-IPMC-MIB: marsMI after installation is complete B: = {mib-2 57} Undefined identifier: mib-2 near line 18 of/usr/share/mibs/ietf/IPATM-IPMC-MIBBad operator (INTEGER ): at line 73 in/usr/share/mibs/ietf/SNMPv2-PDUUndefined OBJECT-GROUP (diffServMIBMultiFieldClfrGroup ): at line 2195 in/usr/share/mibs/ietf/IPSEC-SPD-MIBUndefined OBJECT-GROUP (diffServMultiFieldClfrNextFree ): at line 2157 in/usr/share/mibs/ietf/IPSEC-SPD-MIBUndefined OBJECT-GRO UP (diffServMIBMultiFieldClfrGroup): At line 2062 in/usr/share/mibs/ietf/IPSEC-SPD-MIBExpected ": =" (RFC5644 ): at line 493 in/usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIBExpected "{" (EOF ): at line 651 in/usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIBBad object identifier: at line 651 in/usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIBBad parse of OBJECT-IDENTITY: At line 651 in/ Usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB solution :#! /Bin/bashfor I in/usr/share/mibs/ietf/IPSEC-SPD-MIB/usr/share/mibs/ietf/IPATM-IPMC-MIB/usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB/usr/share /mibs/ietf/SNMPv2-PDUdomv $ I/usr/share/mibsdone another snmpwalk-v 2c-c public 192.168.1.1 mem can be used, snmpwalk-v 2c-c public 192.168.1.1 cpu is not available, because the cpu does not have this logical name, so you can directly use OID, snmpwalk-v 2c-c public 192.168.1.1. 1.3.6.1.2.1.25.3.3.1.2 snmpwalk-v 2c-c public 192.168.1.1. others-RESOURCES-MIB: Drivers = INTEGER: 1HOST-RESOURCES-MIB: Drivers = INTEGER: 0HOST-RESOURCES-MIB: Drivers = INTEGER: 0HOST-RESOURCES-MIB: Drivers = INTEGER: 1HOST-RESOURCES-MIB: Drivers = INTEGER: 0HOST-RESOURCES-MIB :: failed = INTEGER: 0HOST-RESOURCES-MIB: Success = INTEGER: 1HOST-RESOURCES-MIB: Success = INTEGER: 0HOST-RESOURCES-MIB: Success = INTEGER: 1HOST-RESOURCES-MIB: Success = INTEGER: 1HOST-RESOURCES-MIB: Success = INTEGER: 1HOST-RESOURCES-MIB: Physical = INTEGER: 2HOST-RESOURCES-MIB: Physical = INTEGER: 0HOST-RESOURCES-MIB: Physical = INTEGER: 1HOST-RESOURCES-MIB: Physical = INTEGER: 0HOST-RESOURCES-MIB: Physical = INTEGER: 0; simplified snmpd. conf ##### First, map the community name "public" into a "security name" # ec. name source community com2sec my_user 192.168.1.1 public #### Second, map the security name into a group name: # groupName securityModel securityName group my_group v2c my_user #### Third, create a view for us to let the group have rights to: # name incl/excl subtree mask (optional) view all supported ded. 1 80 ##### Finally, grant the group read-only access to the systemview view. # group context sec. model sec. level prefix read write notif access my_group "" any noauth exact all none #### Customer pass_persist. 1.3.6.1.3.1/usr/bin/perl/usr/local/bin/iostat-persist.pl

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.