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. Linux shell 获取目录下时间最新的文件的文件名

    ls -lt /dirname/ | grep filename | head -n 1 |awk '{print $9}' 逐条解释: ls -lt /dirname/ 列出此目录下的所有文件并按照 ...

  2. 牛客练习赛 73 D

    题目链接 离别 离线算法+线段树 容易发现当我们枚举右端点r时,符合条件的左端点是一段连续的区间 我们可以用队列来维护这个连续区间的左右端点 当枚举到端点\(i\)时,将下标\(i\)插入到队列\(q ...

  3. mini-web框架-WSGI-mini-web框架-多进程,面向对象的服务器(5.1.1)

    @ 目录 1.说明 2.代码 关于作者 1.说明 使用多进程 积极主动python多进程是复制资源,线程是共享变量 所以这个的socket要关两次,因为复制文件的时候,是把文件的fd给复制过去(fil ...

  4. <未解决的问题>crontab 定时弹框任务

    问题:crontab写别的定时脚本就可以执行(比如说每隔一分钟就创建一个txt文件),但是写shell就不知道为什么,反弹不了 但是开启Linux终端窗口单独执行bash shell时候,(不通过re ...

  5. maven继承父工程统一版本号

    一.建立一个maven工程 pom类型 统一管理依赖以及版本号 子工程不会使用所有的定义的依赖 子工程使用依赖时无需指定版本号 pom.xml <project xmlns="http ...

  6. linux -bash: unzip: 未找到命令(实测有效!)

    今天使用linux解压的时候遇到了不能解压的问题,然后就看了一些文档,写一个解决方案 Linux version 3.10.0-957.10.1.el7.x86_64 (mockbuild@kbuil ...

  7. Python进阶学习_连接操作Redis数据库

    安装导入第三方模块Redis pip3 install redis import redis 操作String类型 """ redis 基本命令 String set(n ...

  8. C# Wpf 文件保存对话框

    C# Wpf库中无文件保存对话框,需引用winform,引用winform后多处提示引用不明确,将winform引用改别名. // 引用winform,改别名 using Forms = System ...

  9. .net mvc 微信公众号 验证微信签名

    官方文档:https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421135319&token=&lang=zh_CN ...

  10. 【Azure Redis 缓存】Linux虚拟机中使用6380端口(SSL方式)连接Azure Redis (redis-cli & stunnel)

    问题描述 在Azure Redis的官方文档中,介绍了在Windows下,如何通过redis-cli.exe连接Redis, 包含如何配置stunnel使得通过 6380,SSL方式连接到Redis ...