- 论坛徽章:
- 0
|
本帖最后由 Lyphone 于 2013-04-26 13:55 编辑
我的目的是想通过SolarWinds对HP-UX进行监控。
snmpd.conf的内容如下:
- com2sec local localhost public
- com2sec mynetwork 10.1.1.51 public
- group MyROGroup v2c local
- group MyROGroup v2c mynetwork
- view all included .1 80
- access MyROGroup "" any noauth exact all none none
- syslocation Right here, right now.
- syscontact Me <me@somewhere.org>
- proc mountd
- proc ntalkd 4
- proc sendmail 10 1
- exec echotest /bin/echo hello world
- disk / 10000
- load 12 14 14
复制代码 我是通过此条命令来启动net-snmp的:- /opt/iexpress/net-snmp/sbin/snmpd -Lf /netsnmp.log -V -c /opt/iexpress/net-snmp/bin/snmpd.conf
复制代码 netsnmp.log日志的部分数据如下:
- Received SNMP packet(s) from UDP: [10.80.41.2]:52515->[0.0.0.0]:0
- GET message
- -- SNMPv2-MIB::sysObjectID.0
- -- SNMPv2-MIB::sysDescr.0
- -- SNMPv2-MIB::sysName.0
- -- SNMPv2-MIB::sysLocation.0
- -- SNMPv2-MIB::sysContact.0
- -- SNMPv2-MIB::sysServices.0
- Received SNMP packet(s) from UDP: [10.80.41.2]:64237->[0.0.0.0]:0
- GET message
- -- IF-MIB::ifDescr.5
- -- IF-MIB::ifAdminStatus.5
- -- IF-MIB::ifOperStatus.5
- -- IF-MIB::ifLastChange.5
- -- IF-MIB::ifName.5
- Received SNMP packet(s) from UDP: [10.80.41.2]:52515->[0.0.0.0]:0
- GET message
- -- SNMPv2-MIB::sysObjectID.0
- -- SNMPv2-MIB::sysDescr.0
- -- SNMPv2-MIB::sysName.0
- -- SNMPv2-MIB::sysLocation.0
- -- SNMPv2-MIB::sysContact.0
- -- SNMPv2-MIB::sysServices.0
- Received SNMP packet(s) from UDP: [10.80.41.2]:64237->[0.0.0.0]:0
- GET message
- -- IF-MIB::ifDescr.5
- -- IF-MIB::ifAdminStatus.5
- -- IF-MIB::ifOperStatus.5
- -- IF-MIB::ifLastChange.5
- -- IF-MIB::ifName.5
- Received SNMP packet(s) from UDP: [10.80.41.2]:52515->[0.0.0.0]:0
- GET message
- -- DISMAN-EVENT-MIB::sysUpTimeInstance
- Received SNMP packet(s) from UDP: [10.80.41.2]:64237->[0.0.0.0]:0
- GET message
- -- IF-MIB::ifDescr.5
- -- IF-MIB::ifAdminStatus.5
- -- IF-MIB::ifOperStatus.5
- -- IF-MIB::ifLastChange.5
- -- IF-MIB::ifName.5
- Received SNMP packet(s) from UDP: [10.80.41.2]:52515->[0.0.0.0]:0
- GET message
- -- DISMAN-EVENT-MIB::sysUpTimeInstance
- Purging address from address cache: UDP: [10.80.41.2]:52512->[0.0.0.0]:0Received SNMP packet(s) from UDP: [10.80.41.2]:64241->[0.0.0.0]:0
- GET message
- -- DISMAN-EVENT-MIB::sysUpTimeInstance
- Purging address from address cache: UDP: [10.80.41.2]:52513->[0.0.0.0]:0Received SNMP packet(s) from UDP: [10.80.41.2]:54239->[0.0.0.0]:0
- GET message
- -- IF-MIB::ifHCInOctets.2
- Purging address from address cache: UDP: [10.80.41.2]:52514->[0.0.0.0]:0Received SNMP packet(s) from UDP: [10.80.41.2]:54240->[0.0.0.0]:0
- GET message
- -- DISMAN-EVENT-MIB::sysUpTimeInstance
复制代码 10.1.1.51为SolarWinds服务器的IP,10.80.41.2为HP-UX的IP,我在HP-UX中snmpwalk可以获得数据,但是无论是用SolarWinds还是其他同网段的设备,都无法正常取值。网络中无访问控制列表,HP-UX的rc.d中添加了snmpd的udp161端口,可是还是不行。问题出在哪里?
听说配置文件中不能用tab隔断,特意全换成了空格,也是不行。
|
|