LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 886|回复: 2

snmp启动错误

[复制链接]
发表于 2006-4-17 12:58:15 | 显示全部楼层 |阅读模式
相同的snmpd.conf只有此台机器有这个问题不能够用snmpwalk获取信息,提示错误为主机没有相应,log日志如下:
2006-04-17 11:44:04 snmpd: snmpd shutdown succeeded

2006-04-17 11:44:04 snmpd: snmpd startup succeeded

2006-04-17 11:44:04 kernel: audit(1145245060.470:0): avc: denied { read } for pid=14209 exe=/usr/sbin/snmpd name=snmpd.conf dev=cciss/c0d0p9 ino=1251123 scontext=root:system_r:snmpd_t tcontext=rootbject_r:user_home_t tclass=file

2006-04-17 11:44:04 snmpd[14209]: Warning: no access control information configured. It's unlikely this agent can serve any useful purpose in this state. Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for this agent.  

配置文件内容如下:
com2sec notConfigUser  default       public

group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser

view     mib2         included   .iso.org.dod.internet.mgmt.mib-2 fc

access  notConfigGroup ""      any       noauth    exact  all none none

view all    included  .1                               80
 楼主| 发表于 2006-4-17 13:00:54 | 显示全部楼层
只有这台机器在cacti服务器上会得到下面的提示,看log似乎是snmpd.conf问题,但是这个配置是和别的机器统一的。很奇怪

[root@dev root]# snmpwalk -v 1 -c public ip
Timeout: No Response from ip
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-4-17 15:06:37 | 显示全部楼层
Selinux.. 烦人。 解决
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表