Re: hrprocessorload-returns-incorrect-values-for-processor-s-100
Den 13-01-2014 08:25, Jianhai Luan skrev: Hi Niels, The patch is being verified in customer's environment, and the customer don't update the issue until now. So sorry for more time to wait the result. As this seems OK for a one or two digit cpu numbers, I have applied it to the active branches, and conside this problem closed. /Nies -- Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net The purpose of computing is insight, not numbers --- R W Hamming -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
hrprocessorload-returns-incorrect-values-for-processor-s-100
Hi all, I am working the issue such as *SNMP HRPROCESSORLOAD RETURNS INCORRECT VALUES FOR PROCESSOR #'S 100 *. I google to find useful information, and find the below URL: http://mailing.unix.net-snmp-users.narkive.com/o21D50GY/hrprocessorload-returns-incorrect-values-for-processor-s-100 My question is why do the patch not be merged into latest version? and if do the patch have other effect? Thanks, Jason -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
Re: hrprocessorload-returns-incorrect-values-for-processor-s-100
Den 06-01-2014 08:35, Jianhai Luan skrev: Hi all, I am working the issue such as *SNMP HRPROCESSORLOAD RETURNS INCORRECT VALUES FOR PROCESSOR #'S 100 *. I google to find useful information, and find the below URL: http://mailing.unix.net-snmp-users.narkive.com/o21D50GY/hrprocessorload-returns-incorrect-values-for-processor-s-100 My question is why do the patch not be merged into latest version? and if do the patch have other effect? I am not following net-snmp-users, so I cannot tell what happened to it, but if you could verify the attached patch I will make sure it gets into 5.7.3 /Niels -- Niels Baggesen - @home - Århus - Denmark - n...@users.sourceforge.net The purpose of computing is insight, not numbers --- R W Hamming diff --git a/agent/mibgroup/hardware/cpu/cpu_linux.c b/agent/mibgroup/hardware/cpu/cpu_linux.c index 8a081cd..b1dc308 100644 --- a/agent/mibgroup/hardware/cpu/cpu_linux.c +++ b/agent/mibgroup/hardware/cpu/cpu_linux.c @@ -154,7 +154,9 @@ int netsnmp_cpu_arch_load( netsnmp_cache *cache, void *magic ) { snmp_log_perror(Missing CPU info entry); break; } -b1 = b2+5; /* Skip cpuN */ +b1 = b2; /* Skip cpuN */ +while(*b1 != ' ') b1++; +b1++; } num_cpuline_elem = sscanf(b1, %llu %llu %llu %llu %llu %llu %llu %llu %llu %llu, -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders