mrtg安装过程中遇到问题的整理

1.cfgmaker时候,出现--snpo: Skipping ifName scanning because [email protected] : does not seem to support it

2./usr/bin/mrtg /data1/apache/htdocs/mrtg/121.122.122.21/mrtg.cfg
 出现如下错误
ERROR: Mrtg will most likely not work properly when the environment
       variable LANG is set to UTF-8. Please run mrtg in an environment
       where this is not the case. Try the following command to start:
 
       env LANG=C /usr/bin/mrtg /data1/apache/htdocs/mrtg/121.122.122.21/mrtg.cfg

3.snmpd进程消失,查看日志
/var/log/snmpd.log看到
cat snmpd.log
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
netsnmp_assert !"registration != duplicate" failed agent_registry.c:535 netsnmp_subtree_load()
error on subcontainer 'ia_addr' insert (-1)
error on subcontainer 'ia_index' insert (-1)
error on subcontainer 'ia_addr' insert (-1)
error on subcontainer 'ia_index' insert (-1)
couldn't map value 0 for ipAddressAddrType
NET-SNMP version 5.4.1
error on subcontainer 'ia_addr' insert (-1)
error on subcontainer 'ia_index' insert (-1)
error on subcontainer 'ia_addr' insert (-1)
error on subcontainer 'ia_index' insert (-1)
error on subcontainer 'ia_addr' insert (-1)
error on subcontainer 'ia_index' insert (-1)
error on subcontainer 'ia_addr' insert (-1)
error on subcontainer 'ia_index' insert (-1)

解决办法
1,2实际都是客户端snmpd的配置snmpd.conf出问题导致,目前是这样解决,snmpd.conf改为只写一句rocommunity public

3.按网上说法改装5.4.2就不会有问题,实际上现在时改装5.1.4,同样正常了。

你可能感兴趣的:(c,command,insert)