From: SourceForge.net <no...@so...> - 2008-05-14 09:54:29
|
Patches item #1951996, was opened at 2008-04-25 16:39 Message generated for change (Comment added) made by sobomax You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312694&aid=1951996&group_id=12694 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Maxim Sobolev (sobomax) Assigned to: Nobody/Anonymous (nobody) Summary: Fix for CPU stats on FreeBSD Initial Comment: Hi, In the recent FreeBSD stable version (6.3-STABLE) the ability to get CPU stats stats via the KVM variable has beed discontinued. All application should use the sysctl interface instead, which is available since year 2000, so that it should be present in any FreeBSD versions starting from 4.0 onwards. Attached patch does the switch. Thanks! -Maxim ---------------------------------------------------------------------- >Comment By: Maxim Sobolev (sobomax) Date: 2008-05-14 02:54 Message: Logged In: YES user_id=24670 Originator: YES Dear Thomas, Thank you for your suggestion. I have uploaded two new paches that update appropriate HAL module. They provide complete solution for the problem in question, I don't think you need to apply patch for the obsolete code at all. Please let me know if you have any other comments or suggestions. -Maxim ---------------------------------------------------------------------- Comment By: Maxim Sobolev (sobomax) Date: 2008-05-14 02:48 Message: Logged In: YES user_id=24670 Originator: YES File Added: patch-agent_mibgroup_hardware_cpu_cpu__sysctl.c ---------------------------------------------------------------------- Comment By: Maxim Sobolev (sobomax) Date: 2008-05-14 02:47 Message: Logged In: YES user_id=24670 Originator: YES File Added: patch-agent_mibgroup_hardware_cpu.h ---------------------------------------------------------------------- Comment By: Thomas Anders (tanders) Date: 2008-05-05 15:48 Message: Logged In: YES user_id=848638 Originator: NO This patch only updates the deprecated the old ucd-snmp/vmstat mib module. However, net-snmp 5.4 and later consolidate CPU statistics into a new HAL under agent/hardware/cpu. Could you rework your patch to also update agent/mibgroup/hardware/cpu.h and agent/mibgroup/hardware/cpu/cpu_sysctl.c? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=312694&aid=1951996&group_id=12694 |