NetXMS Support Forum

English Support => General Support => Topic started by: Marco Incalcaterra on November 25, 2013, 06:13:43 PM

Title: Wrong CPU count on linux
Post by: Marco Incalcaterra on November 25, 2013, 06:13:43 PM
Hi,

it seems that this counter:

System.CPU.Count

reports the wrong number of CPU (it reports one less than the real number). I tried it on two Linux distribution (ZeroShell 2.0RC2 and Debian 7 x64). It works properly on Windows (all flavours).

Do it is a bug or I'm doing something wrong?

Best regards,
Marco
Title: Re: Wrong CPU count on linux
Post by: Victor Kirhenshtein on November 25, 2013, 08:43:56 PM
It's hard to do something wrong here :) Definitely a bug, I'll check this.

Best regards,
Victor
Title: Re: Wrong CPU count on linux
Post by: Marco Incalcaterra on November 25, 2013, 08:53:12 PM
Quote from: Victor Kirhenshtein on November 25, 2013, 08:43:56 PM
It's hard to do something wrong here :) Definitely a bug, I'll check this.

Well, for the momenti I just added +1 in the transformation ;D

Marco
Title: Re: Wrong CPU count on linux
Post by: Alex Kirhenshtein on November 25, 2013, 10:43:18 PM
Could you please send me content of /proc/stat and /proc/cpuinfo from the affected server?
Title: Re: Wrong CPU count on linux
Post by: Marco Incalcaterra on November 26, 2013, 12:51:38 PM
Quote from: Alex Kirhenshtein on November 25, 2013, 10:43:18 PM
Could you please send me content of /proc/stat and /proc/cpuinfo from the affected server?

Hi Alex,

you can find here attached the requested info for Zeroshell and Debian.

Best regards,
Marco
Title: Re: Wrong CPU count on linux
Post by: Marco Incalcaterra on December 06, 2013, 06:37:33 PM
Hi Alex,

did you find anything interesting in the files I attached? I have the same behaviour also on a CentOS v. 5.10 (Kernel Linux 2.6.18-371.1.2.el5 on x86_64).

Best regards,
Marco
Title: Re: Wrong CPU count on linux
Post by: Alex Kirhenshtein on December 06, 2013, 07:58:45 PM
Yes, thanks, I found issue in linux subagent. I'll try to push this fix into 1.2.10.
Title: Re: Wrong CPU count on linux
Post by: Alex Kirhenshtein on December 07, 2013, 07:59:30 PM
Fixed in revision 906fa25, will be included in 1.2.10
Title: Re: Wrong CPU count on linux
Post by: Marco Incalcaterra on December 07, 2013, 08:01:35 PM
Good job. Thank you!

Marco