可能重复:
HP-SNMP-Agents的系统负载很高
收到我们的HP ProLiant DL360后,我想将本机集成到我们的Munin系统中,从而使ProLiant特定信息通过SNMP公开。
我正在使用内核2.6.26-2-vserver-amd64运行Debian Lenny。 我已经遵循http://downloads.linux.hp.com/SDR/getting_started.html ,并且HP知识库已被添加到/etc/apt/sources.list.d/HP-ProLiantSupportPack.list 。
设置Lenny SNMP本身不是问题,我configuration它有一个公共的v1社区string来读取所有的数据,它的工作原理。 我安装hp-snmp-agents并运行hpsnmpconfig并在/etc/snmp/snmpd.conf的顶部添加其他行:
dlmod cmaX /usr/lib64/libcmaX64.so
snmpd重新启动。
通过lsof我可以看到, libcmaX64被加载并被snmpd使用,把我没有得到任何额外的信息snmp。 我使用snmpwalk -v 1 -c public ...而且我可以看到许多OID,但是我没有看到我期望的新的,尤其是温度,风扇速度等等。
我期待的OID是例如1.3.6.1.4.1.232.6.2.6.8.1.4. 1,这是来自http://exchange.munin-monitoring.org/plugins/snmp__hp_temp/version/1的现有的munin插件。
snmpd[19007]: cmaX: Parsing shared as a type was unsucessful snmpd[19007]: cmaX: listening for subagents on port 25375 snmpd[19007]: cmaX: subMIB 1 handler has disconnected snmpd[19007]: cmaX: subMIB 2 handler has disconnected snmpd[19007]: cmaX: subMIB 3 handler has disconnected snmpd[19007]: cmaX: subMIB 5 handler has disconnected snmpd[19007]: cmaX: subMIB 6 handler has disconnected snmpd[19007]: cmaX: subMIB 8 handler has disconnected snmpd[19007]: cmaX: subMIB 9 handler has disconnected snmpd[19007]: cmaX: sent ColdStarts on ports 25376 to 25393 snmpd[19007]: cmaX: subMIB 10 handler has disconnected snmpd[19007]: cmaX: subMIB 11 handler has disconnected snmpd[19007]: cmaX: subMIB 14 handler has disconnected snmpd[19007]: cmaX: subMIB 15 handler has disconnected snmpd[19007]: cmaX: subMIB 16 handler has disconnected snmpd[19007]: cmaX: subMIB 21 handler has disconnected snmpd[19007]: cmaX: subMIB 22 handler has disconnected snmpd[19007]: cmaX: subMIB 23 handler has disconnected snmpd[19007]: cmaX: subMIB 1 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 2 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 3 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 5 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 6 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 8 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 9 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 10 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 11 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 14 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 15 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 16 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 21 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 22 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 23 will be sent on port 25376 to hp Advanced Server Management_Peer snmpd[19007]: cmaX: subMIB 18 handler has disconnected snmpd[19007]: cmaX: subMIB 18 will be sent on port 25393 to cpqnicd snmpd[19007]: NET-SNMP version 5.4.1
这对我来说并不特别糟糕,这只是我想的信息。
我已经比较了有和没有模块的OID输出,没有任何差别。 有什么其他的先决条件我错过了吗?
我也注意到,从我安装hp-snmp-agents的时候起,它增加了很多额外的守护进程,我的负载突然跳到1.我现在已经卸载了这个包。 这是预期的行为?
负载峰值http://h30499.www3.hp.com/hpeb/attachments/hpeb/bsc-431/18582/1/load.jpg
我遇到同样的情况,我的负荷也停留在1代理开始后。 我在这个线程中find了一个解决scheme,它将负载降低到至less0.6:
还要确保你有不同的社区string的各种选项。 否则,您将继续在/var/log/net-snmpd.log看到“subcontainer”消息中的错误
更新:在发现你的问题之前,我曾经问过同样的问题(只是一个完全不同的标题)。 HP-SNMP-Agents的系统负载很高你会在那里find答案。 引用:
总之,您需要停止使用/etc/init.d/hp-snmp-agents停止HPpipe理代理。 在以下位置编辑/opt/hp/hp-snmp-agents/cma.conf中的排除行:
排除
至
排除cmasm2d cpqriisd cmarackd
用/etc/init.d/hp-snmp-agents start重新启动您的代理