领先的中文IT技术网站    IT技术从现在起飞

飞诺旗下: 技术社区 | 在线电子书 | 在线试题 | 资源下载 | 飞诺搜索 | 技术博客
用户名: 密   码:
   飞诺网 加入收藏
飞诺网 Linux 新闻频道 开发频道 系统频道 服务器 网络频道 网络安全 Java频道 C/C++ PHP开发 电子书 资源下载 社 区 博 客 在线试题
操作系统 Linux Windows xp Windows 2003 Windows 2000/NT DOS Mac OS X Vista FreeBSD Solaris SCO UNIX AIX Windows 2008
编程开发 JAVA C/C++ C++ VC C语言 VB C# Delphi Foxpro 汇编 shell编程 游戏开发 软件工程师 WEB开发 PHP ASP Asp.net JSP AJAX CGI JavaScript HTML CSS 数据库 MSSQL Mysql Oracle Access Sybase DB2 sql2005 Office Word Excel Powerpoint Wps 认证考试 二级C语言 三级网络 程序员 网络工程师 思科认证

您当前的位置:飞诺网 >> linux >> Linux技术文章

snmpd输出日志的过滤

www.firnow.com    时间 : 2008-09-30  作者:佚名   编辑:本站 点击:   [ 评论 ]


系统的日志经常报这些日志出来
Sep 21 04:10:02 DB2 last message repeated 16 times
Sep 21 04:15:03 DB2 last message repeated 16 times
Sep 21 04:15:03 DB2 last message repeated 15 times
Sep 21 04:20:03 DB2 snmpd[12064]: Connection from UDP: [192.168.1.100]:35441
Sep 21 04:20:03 DB2 snmpd[12064]: Received SNMP packet(s) from UDP: [192.168.1.100]:35441
Sep 21 04:20:03 DB2 snmpd[12064]: Connection from UDP: [192.168.1.100]:35441
Sep 21 04:25:02 DB2 last message repeated 15 times
Sep 21 04:30:03 DB2 last message repeated 16 times
Sep 21 04:35:03 DB2 last message repeated 16 times
Sep 21 04:40:02 DB2 last message repeated 16 times
Sep 21 04:40:02 DB2 last message repeated 15 times
这些信息都是cacti来snmpd来抓取数据时引起的相关记录。不知哪位大侠知道造成这日志的原因是什么呢?
我想把这些日志都过滤掉。如果是centos的修改/etc/init.d/snmpd
把这一行 OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a"
   改成  OPTIONS="-LS 0-4 d -Lf /dev/null -p /var/run/snmpd.pid -a"
   保存重启,详细的参数意思,可以用 man snmpd和man snmpcmd来查看
   man snmpcmd中对日志等级的定义
              0 or !  for LOG_EMERG,
              1 or a for LOG_ALERT,
              2 or c for LOG_CRIT,
              3 or e for LOG_ERR,
              4 or w for LOG_WARNING,
              5 or n for LOG_NOTICE,
              6 or i for LOG_INFO, and
              7 or d for LOG_DEBUG.
如果图片或页面不能正常显示请点击这里
Linux技术文章推荐文章

文章评论