CPU usage on 2, 4 and 8 way Linux devices

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

dieselboy
Cacti User
Posts: 135
Joined: Wed May 27, 2009 5:10 pm

Post by dieselboy »

michelbof, FYI..you shouldnt really be polling directly over the internet

also, does anyone run a tri-core CPU (like me) ? im wondering how you are polling your cpu's :)
joelserrano
Posts: 6
Joined: Fri Mar 11, 2011 7:09 am

Re: CPU usage on 2, 4 and 8 way Linux devices

Post by joelserrano »

fmangeant wrote: To know how many logical CPU are seen by Linux, run this command :

Code: Select all

$ grep -c ^processor /proc/cpuinfo
2
Hi, I have a server running 24:

Code: Select all

$ grep -c ^processor /proc/cpuinfo
24
$


(In fact it's 2x12 but the total = 24)

Can you please create a 12-way template and a 24-way template? I'd be very thankful.


Thanks in advanced.


Joel.
mikaelf
Posts: 25
Joined: Sun Mar 19, 2006 10:39 am
Location: Uppsala, Sweden

Re: CPU usage on 2, 4 and 8 way Linux devices

Post by mikaelf »

I'd like to point your attention to this Next Gen CPU Graph for Linux single core, multi core, ANY core system...:

Scripts and Templates: http://forums.cacti.net/viewtopic.php?f ... 24&start=0

Basically, would love to know if it works or bugs on a few more systems than mine.
joelserrano
Posts: 6
Joined: Fri Mar 11, 2011 7:09 am

Re: CPU usage on 2, 4 and 8 way Linux devices

Post by joelserrano »

I'm gonna try it out and give feedback of the results... :-)

Thanks!!
mikaelf
Posts: 25
Joined: Sun Mar 19, 2006 10:39 am
Location: Uppsala, Sweden

Re: CPU usage on 2, 4 and 8 way Linux devices

Post by mikaelf »

joelserrano: I have no idea if it works on Kernel 2.4, I doubt it...
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Re: CPU usage on 2, 4 and 8 way Linux devices

Post by Instigater »

joelserrano
Posts: 6
Joined: Fri Mar 11, 2011 7:09 am

Re: CPU usage on 2, 4 and 8 way Linux devices

Post by joelserrano »

mikaelf wrote:joelserrano: I have no idea if it works on Kernel 2.4, I doubt it...
What about kernel 2.6.X?
joelserrano
Posts: 6
Joined: Fri Mar 11, 2011 7:09 am

Re: CPU usage on 2, 4 and 8 way Linux devices

Post by joelserrano »

I'm gonna try this one also :-)

Thanks!
mikaelf
Posts: 25
Joined: Sun Mar 19, 2006 10:39 am
Location: Uppsala, Sweden

Re: CPU usage on 2, 4 and 8 way Linux devices

Post by mikaelf »

joelserrano wrote:
mikaelf wrote:joelserrano: I have no idea if it works on Kernel 2.4, I doubt it...
What about kernel 2.6.X?
Yes, that's what I designed it for/on.

There were a bunch of other metrics documented in net-snmp but they were too unreliable to use and varied from machine to machine. All the metrics that were reliable (in my testing) I put in the graph.
specki
Posts: 32
Joined: Thu Jun 09, 2011 5:49 am
Location: Cologne, Germany

Re: CPU usage on 2, 4 and 8 way Linux devices

Post by specki »

I have several CPUs in also change the snmp command or example can .1.3.6.1.4.1.2021.11.50.0 the already
hid3nax
Cacti User
Posts: 68
Joined: Thu Jan 12, 2012 7:48 am

Re: CPU usage on 2, 4 and 8 way Linux devices

Post by hid3nax »

Hello everyone.

I use the 8-way CPU template on a 8 core machine. However, when the server is heavily loaded, i don't have any data displayed. See the screenshot, between 06:00 and 07:00 AM.

How can I solve this problem?
Attachments
cacti-cpu.png
cacti-cpu.png (206.87 KiB) Viewed 5624 times
ejg
Posts: 2
Joined: Fri May 20, 2016 2:35 pm

Re: CPU usage on 2, 4 and 8 way Linux devices

Post by ejg »

Hi,

Somebody created a threshold with CPU usage 2,4, or 8 way?

How I can do that?

regards
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests