Installing MIB in Ubuntu and Solving the Error “SNMP Cannot Find Module …”

Has noticed an error after executing the command snmpwalk with the indication of MIB instead of OID:


1

2

snmpwalk -v 2c -c public 192.168.0.1 ifIndex

ifIndex: Unknown Object Identifier (Sub-id not found: (top) -> ifIndex)

And:


1

2

3

4

5

6

7

8

9

10

11

12

13

14

For error such as:

Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)

Cannot find module (HOST-RESOURCES-TYPES): At line 0 in (none)

Cannot find module (SNMPv2-TC): At line 10 in /usr/share/mibs/netsnmp/UCD-DLMOD-MIB

Cannot find module (SNMPv2-SMI): At line 34 in /usr/share/mibs/netsnmp/UCD-SNMP-MIB

Cannot find module (SNMPv2-TC): At line 37 in /usr/share/mibs/netsnmp/UCD-SNMP-MIB

Did not find ‘enterprises’ in module #-1 (/usr/share/mibs/netsnmp/UCD-SNMP-MIB)

Did not find ‘DisplayString’ in module #-1 (/usr/share/mibs/netsnmp/UCD-SNMP-MIB)

Did not find ‘TruthValue’ in module #-1 (/usr/share/mibs/netsnmp/UCD-SNMP-MIB)

Unlinked OID in UCD-SNMP-MIB: ucdavis ::= { enterprises 2021 }

Undefined identifier: enterprises near line 39 of /usr/share/mibs/netsnmp/UCD-SNMP-MIB

Did not find ‘DisplayString’ in module #-1 (/usr/share/mibs/netsnmp/UCD-DLMOD-MIB)

Did not find ‘ucdExperimental’ in module UCD-SNMP-MIB (/usr/share/mibs/netsnmp/UCD-DLMOD-MIB)

...

We look at the tree of mibs:


1

snmptranslate -Tp

The solution to the above errors is the execution of the following commands:


1

2

3

4

sudo apt-get install snmp-mibs-downloader

sudo download-mibs

sudo sed -i "s/^\(mibs *:\).*/#\1/" /etc/snmp/snmp.conf

sudo service snmpd restart

原文地址:https://www.cnblogs.com/zlgxzswjy/p/10560286.html

时间: 2024-10-25 05:04:12

Installing MIB in Ubuntu and Solving the Error “SNMP Cannot Find Module …”的相关文章

ubuntu下安装nginx错误error: the HTTP rewrite module requires the PCRE library 解决方法

本文为大家讲解的是ubuntu下安装nginx错误error: the HTTP rewrite module requires the PCRE library 解决方法,感兴趣的同学参考下. 本文为大家讲解的是ubuntu下安装nginx错误error: the HTTP rewrite module requires the PCRE library 解决方法,感兴趣的同学参考下. 错误描述: ubuntu安装nginx时提示error: the HTTP rewrite module r

ubuntu error: the HTTP rewrite module requires the PCRE library.

checking for getaddrinfo() ... found configuring additional modules adding module in //usr/src/echo-nginx-module-master + ngx_http_echo_module was configured checking for PCRE library ... not found checking for PCRE library in /usr/local/ ... not fou

nginx安装报错./configure: error: the http rewrite module requires the pcre library.

nginx编译时报错: ./configure: error: the http rewrite module requires the pcre library. 解决方法: [[email protected] nginx-1.5.9]#  yum install zlib-devel -y

./configure: error: the HTTP rewrite module requires the PCRE library解决

有时候,我们需要单独安装nginx,来处理大量的下载请求. 单独在Centos5安装nginx遇到的rewrite和HTTP cache错误解决办法: wget http://nginx.org/download/nginx-0.8.33.tar.gz tar -zxvf nginx-0.8.33.tar.gz cd nginx-0.8.33 ./configure --prefix=/usr/local/nginx 安装Nginx时报错 ./configure: error: the HTTP

rsync报错@ERROR: auth failed on module XX

在手动输入/etc/rsync.conf配置文件,rsync --daemon启动后,同步数据发现如下问题: [[email protected] ~]# rsync -avz /tmp/ [email protected]::backup/ --password-file=/etc/rsync.password @ERROR: auth failed on module backup rsync error: error starting client-server protocol (cod

ngingx安装错误 ./configure: error: the HTTP rewrite module requires the PCRE library.

有时候,我们需要单独安装nginx,来处理大量的下载请求.单独在Centos5安装nginx遇到的rewrite和HTTP  cache错误解决办法: wget http://nginx.org/download/nginx-0.8.33.tar.gztar -zxvf nginx-0.8.33.tar.gz cd nginx-0.8.33./configure --prefix=/usr/local/nginx 安装Nginx时报错 ./configure:  error: the HTTP 

CentOS安装Nginx 报错“configure: error: the HTTP rewrite module requires the PCRE library”解决办法

错误提示: ./configure: error: the HTTP rewrite module requires the PCRE library. 安装pcre-devel与openssl-devel解决问题 yum -y install pcre-devel openssl openssl-devel ./configure --prefix=/usr/local/nginx make make install

error: the HTTP rewrite module requires the PCRE library.

1 从http://nginx.org/en/download.html   或http://nginx.net/en/download.html     wget http://nginx.org/download/nginx-0.6.38.tar.gz 2 解压 安装:    tar zxvf nginx-0.6.38.tar.gz    cd nginx-0.6.38    ./configure       make     make install 正常安装的话,这样就可以了,但是有时

RSYNC @ERROR: AUTH FAILED ON MODULE XXX 解决思路及附录RSYNC常见问题及解决办法

使用rsync往服务器上传文件时,client报如下异常: @ERROR: auth failed on module XXX rsync error: error starting client-server protocol (code 5) at main.c(1503) [Receiver=3.0.6] 排查步骤 1 检查server端和client端的用户名和密码确认都无误: 服务器端检查这个/etc/rsync.pass密码文件, 客户端检查--password-file配置的密码文