martinkoo
[求救啊]snmp自动断开的问题
最近我在弄cacti监控linux的cpu,swap,jvm等值 ,是通过SNMP协议抓取这些数据的。可是我又一台server的snmpwalk抓不到数据,我重起snmpd服务后,就可以抓到,但一分钟左右就又抓不到了。返回Timeout: No Response from IP。也就是说snmp自动断开了,重起snmp 服务就又可以抓,但一分钟后又自动断了。不知道原因在什么地方,请各位高手帮忙啊!不胜感激啊!
另外:我确认两台server间的snmp端口已经开了。
martinkoo
回复 #2 platinum 的帖子
多谢指教,不过我看了/var/log/messages,这里并没有异常信息,还有哪里可能有问题呢?
May 12 14:14:03 localhost dbus: Can't send to audit system: USER_AVC pid=2670 uid=81 loginuid=-1 message=avc: denied { send_msg } for scontext=root:system_r:unconfined_t tcontext=user_u:system_r:initrc_t tclass=dbus
May 12 14:14:38 localhost last message repeated 7 times
May 12 14:14:58 localhost last message repeated 4 times
May 12 14:15:01 localhost crond(pam_unix)[3551]: session opened for user root by (uid=0)
May 12 14:15:01 localhost crond(pam_unix)[3553]: session opened for user mqm by (uid=0)
May 12 14:15:01 localhost crond(pam_unix)[3555]: session opened for user mqm by (uid=0)
May 12 14:15:01 localhost crond(pam_unix)[3555]: session closed for user mqm
May 12 14:15:01 localhost crond(pam_unix)[3553]: session closed for user mqm
May 12 14:15:02 localhost crond(pam_unix)[3551]: session closed for user root
May 12 14:15:03 localhost dbus: Can't send to audit system: USER_AVC pid=2670 uid=81 loginuid=-1 message=avc: denied { send_msg } for scontext=root:system_r:unconfined_t tcontext=user_u:system_r:initrc_t tclass=dbus
May 12 14:15:38 localhost last message repeated 7 times
May 12 14:15:58 localhost last message repeated 4 times