Apr 17 17:36:17 localhost snmpd[2810]: /etc/snmp/snmpd.conf: line 311: Error: ERROR: This output format has been deprecated 
- Please use the 'extend' directive instead
Apr 17 17:36:17 localhost snmpd[2810]: /etc/snmp/snmpd.conf: line 314: Error: ERROR: This output format has been deprecated 
- Please use the 'extend' directive instead
Apr 17 17:36:17 localhost snmpd[2810]: /etc/snmp/snmpd.conf: line 315: Error: ERROR: This output format has been deprecated 
- Please use the 'extend' directive instead
Apr 17 17:36:17 localhost snmpd[2810]: /etc/snmp/snmpd.conf: line 316: Error: ERROR: This output format has been deprecated 
- Please use the 'extend' directive instead
Apr 17 17:36:17localhost snmpd[2810]: /etc/snmp/snmpd.conf: line 317: Error: ERROR: This output format has been deprecated 
- Please use the 'extend' directive instead
Apr 17 17:36:17 localhost snmpd[2810]: /etc/snmp/snmpd.conf: line 318: Error: ERROR: This output format has been deprecated 
- Please use the 'extend' directive instead
Apr 17 17:36:17 localhost snmpd[2810]: /etc/snmp/snmpd.conf: line 319: Error: ERROR: This output format has been deprecated 
- Please use the 'extend' directive instead
Apr 17 17:36:17 localhost snmpd[2810]: /etc/snmp/snmpd.conf: line 320: Error: ERROR: This output format has been deprecated 
- Please use the 'extend' directive instead
Apr 17 17:36:17localhost snmpd[2810]: dlopen failed: /lib/lsiRAID.so: cannot open shared object file: No such file or direc
tory
Apr 17 17:36:17localhost snmpd[2810]: net-snmp: 8 error(s) in config file(s)

message中现实的问题说明的很明显,找到相关的文件,替换为extend即可

# mysql
#exec .1.3.6.1.4.1.4502.1.6 mysql /usr/local/share/snmp/get-mysql
extend .1.3.6.1.4.1.4502.1.6 mysql /usr/local/share/snmp/get-mysql # iostat
#exec .1.3.6.1.4.1.8888.2.1 iostat /usr/local/share/snmp/get-iostat sda
#exec .1.3.6.1.4.1.8888.2.2 iostat /usr/local/share/snmp/get-iostat sdb
#exec .1.3.6.1.4.1.8888.2.3 iostat /usr/local/share/snmp/get-iostat sdc
#exec .1.3.6.1.4.1.8888.3.1 iostat-bsd /usr/local/share/snmp/get-iostat-bsd
#exec .1.3.6.1.4.1.8888.4.1 cpustat /usr/local/share/snmp/get-cpustat
#exec .1.3.6.1.4.1.8888.5.1 onlineusers /usr/local/share/snmp/get-statinfo 5min delivery gdeliveryd OnlineUsers 3
#exec .1.3.6.1.4.1.8888.5.2 max-onlineusers /bin/echo 10000 extend .1.3.6.1.4.1.8888.2.1 iostat /usr/local/share/snmp/get-iostat sda
extend .1.3.6.1.4.1.8888.2.2 iostat /usr/local/share/snmp/get-iostat sdb
extend .1.3.6.1.4.1.8888.2.3 iostat /usr/local/share/snmp/get-iostat sdc
extend .1.3.6.1.4.1.8888.3.1 iostat-bsd /usr/local/share/snmp/get-iostat-bsd
extend .1.3.6.1.4.1.8888.4.1 cpustat /usr/local/share/snmp/get-cpustat
extend .1.3.6.1.4.1.8888.5.1 onlineusers /usr/local/share/snmp/get-statinfo 5min delivery gdeliveryd OnlineUsers 3
extend .1.3.6.1.4.1.8888.5.2 max-onlineusers /bin/echo 10000

重启snmpd服务

systemctl restart snmpd

再次查看message日志,日志恢复正常

【Linux】snmp在message中报错: /etc/snmp/snmpd.conf: line 311: Error: ERROR: This output format has been de的更多相关文章

  1. Linux下安装redis报错信息

    redis在Linux安装报错 标签: redislinuxcentos 2017-02-24 13:46 384人阅读 评论(0) 收藏 举报  分类: Linux安装工具(2)  版权声明:本文为 ...

  2. js 在myeclipse中报错

    转myeclipse中的js文件报错   整理一下,希望帮到 遇到此问题的哥们.姐们. 方法一:myeclipse9 很特殊 和 myeclipse10 不一样,所以myeclipse9 不能使用该方 ...

  3. 转帖:解决jquery.js在myeclipse中报错的问题

    转载地址:http://tieba.baidu.com/p/1993753087 从官方下载的jquery.js在myeclipse始终用个大大的红叉,看着很不爽,如何解决呢:jquery.js在my ...

  4. Linux下Oracle11G RAC报错:在安装oracle软件时报file not found一例

    Linux下Oracle11G RAC报错:在安装oracle软件时报file notfound一例 1.现象 之前安装一切都比較顺利,安装oracle软件时,进度到30%时报错:file not f ...

  5. linux下面重启nfs报错:nfs-server.service:main process exited

    linux下面重启nfs报错:nfs-server.service:main process exited [root@dhcp-66-83-39 images]# service rpcbind s ...

  6. linux 下 tomcat 运行报错 Broken pipe

    linux 下 tomcat 运行报错 Broken pipe 感谢:http://hi.baidu.com/liupenglover/blog/item/4048c23ff19f1cd67d1e71 ...

  7. laravel框架中报错 DataTables warning: table id=xxx-table - Cannot reinitialise DataTable.

    laravel框架中报错 DataTables warning: table id=xxx-table - Cannot reinitialise DataTable. 分析: initializin ...

  8. springboot项目中报错:listener does not currently know of SID given in connect descriptor

    springboot项目中报错:listener does not currently know of SID given in connect descriptor 出现这个问题的原因是SID写错了 ...

  9. SNMP学习笔记之Centos7配置SNMP服务

    0x00 安装yum源安装SNMP软件包 1.yum源安装SNMP服务: yum -y install net-snmp net-snmp-utils 2.查看SNMP版本号: snmpd -v 0x ...

随机推荐

  1. hive实例的使用

    一.hive用本地文件进行词频统计 1.准备本地txt文件 2.启动hadoop,启动hive 3.创建数据库,创建文本表 4.映射本地文件的数据到文本 5.hql语句进行词频统计交将结果保存到结果表 ...

  2. 使用OpenSSL自建一个HTTPS服务

    1. 理论知识 1.1 什么是https 传统的 HTTP 协议以明文方式进行通信,不提供任何方式的数据加密,很容易被中间攻击者破解通信内容或者伪装成服务器与客户端通信,在安全性上存在很大问题. HT ...

  3. DSL查询基础—关键字

    1.query查询语句 { "query" : { "match" : { "last_name" : "Smith" ...

  4. 使用caddy实现非标准端口https

    近来使用Halo搭建博客,并顺便把WeHalo小程序也把玩了起来,但是发现几个非常棘手的问题: 根据访问日志发现有三方在刷取关键接口的请求,http请求在部分情况下会暴露出很显著的安全问题: 小程序强 ...

  5. 多任务-python实现-多进程文件拷贝器(2.1.10)

    @ 目录 1.需求 2.代码 1.需求 当去拷贝一个文件夹的所有文件时,使用多任务拷贝 假如一个文件使用一个进程处理 10000个文件就额可以使用最大值为10的进程池处理(当然max取值看具体主机性能 ...

  6. 使用Github快速的寻找项目

    作为一个3年的码农昨天在学习项目,顺便总结一下 ,在Github找项目的几个常用方式 ,如果对您有帮助,可以点个关注,便于下次光顾! 首先我们来看一下常用命令 1.指定搜索方式 搜索文件中有spiri ...

  7. 图解HTTP权威指南 | HTTP报文

                                                                                    一.问题 1.报文流是如何流动的 2.H ...

  8. Autofac官方文档翻译--一、注册组件--4组件扫描

    官方文档:http://docs.autofac.org/en/latest/register/scanning.html Autofac 组件扫描 在程序集中Autofac 可以使用约定来找到并注册 ...

  9. Pygame的简单总结

    Pygame learn from mooc 私货:在调用函数时,可以 1.import tkinter (不过在使用时还要加前缀如tkinter.Tk()) 2.import tkinter as ...

  10. Android 自定义构建类型 BuildType

    简单介绍了 BuildType 定义在 app 项目与 module 项目的区别,以及在 Gradle 2.x 与 3.x 版本的区别. 最近接触到自定义构建类型 BuildType,发现这一块有些地 ...