Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu Dec 13, 2018 12:54 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 57 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: CPU usage on 2, 4 and 8 way Linux devices
PostPosted: Mon Aug 14, 2006 7:41 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Hi all

here are some data & graph templates for multiple CPU Linux devices.
Indeed, Net-SNMP under Linux returns counters whose values range from 0 to (100 x number of logical CPU).

More and more systems use dual core, hyper threading, etc. so the default template which ship with Cacti doesn't work.

To know how many logical CPU are seen by Linux, run this command :
Code:
$ grep -c ^processor /proc/cpuinfo
2

The graph templates do not use the "Auto Scale" functionnality, they are fixed between 0 and 100 percent.

These templates require Cacti 0.8.6h


Attachments:
CPU_x_ways.png
CPU_x_ways.png [ 22.59 KiB | Viewed 86313 times ]
cacti_graph_template_ucdnet_cpu_usage_2_way.xml [22.56 KiB]
Downloaded 8160 times
cacti_graph_template_ucdnet_cpu_usage_4_way.xml [22.56 KiB]
Downloaded 6402 times
cacti_graph_template_ucdnet_cpu_usage_8_way.xml [22.56 KiB]
Downloaded 6091 times

_________________

HOWTOs :
Templates :
Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 25, 2006 5:37 pm 
Offline

Joined: Tue Nov 29, 2005 12:34 pm
Posts: 3
Good stuff...
I think you need to remove maximum value of 100 from data templates for ucd/net - CPU Usage, it can go beyond 100 on SMP systems.

AlexB


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 30, 2006 4:52 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Hi
alexb wrote:
I think you need to remove maximum value of 100 from data templates for ucd/net - CPU Usage, it can go beyond 100 on SMP systems.

that's why I made these templates :)

They use CDEF to divide each counter by the number of processors.

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 01, 2006 2:32 pm 
Offline

Joined: Fri Sep 01, 2006 2:27 pm
Posts: 1
great job, thank you very much!
before installing your template the processor load from the dualcore cpu has been showed like the scales from top in ssh multiplicated with 2... :-?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 08, 2006 8:32 am 
Offline

Joined: Tue Aug 22, 2006 3:19 am
Posts: 28
I added io-wait to these graphs, but they seem disproportionate. Should I also be using the division for them? They seem to correlate with top better when I leave them without division.

edit:

I think I'm mistaken, it does need to be divided :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 08, 2006 10:15 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
I think so.

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 08, 2006 10:59 am 
Offline

Joined: Tue Aug 22, 2006 3:19 am
Posts: 28
I finally managed to get io-wait which was consistant enough to judge from the averige, it definatly does need to be divided.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 18, 2006 3:38 pm 
Offline

Joined: Mon Sep 18, 2006 3:35 pm
Posts: 3
Crap. I applied these templates and now every single graph in my cacti installation is blank.

My RRD's are still updating, the cacti log has nothing since I've done the change, and I'm stumped. Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 19, 2006 10:56 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Hi

did you have any error (like "dependancy not met") when importing the templates ?

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject: Error...
PostPosted: Wed Oct 11, 2006 8:54 am 
Offline

Joined: Wed Oct 11, 2006 8:51 am
Posts: 3
Hello !
I see "Error: XML: Hash version does not exist." when importing the templates .
What the problem ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 9:13 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Hi

these templates were exported from Cacti 0.8.6h, so you need at least this version to import them.

What version are you running ?

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 9:22 am 
Offline

Joined: Wed Oct 11, 2006 8:51 am
Posts: 3
fmangeant wrote:
Hi

these templates were exported from Cacti 0.8.6h, so you need at least this version to import them.

What version are you running ?


Thaks ! i use Cacti Version 0.8.6c.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 11, 2006 9:30 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
If you have a large Cacti installation, 0.8.6i (released yesterday) is for you :D

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 12, 2006 12:25 am 
Offline

Joined: Wed Oct 11, 2006 8:51 am
Posts: 3
fmangeant wrote:
If you have a large Cacti installation, 0.8.6i (released yesterday) is for you :D


A lot of thanks )


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 19, 2006 3:49 pm 
Offline

Joined: Fri Sep 29, 2006 3:34 pm
Posts: 20
im not getting any data for the 4 way graph. no errors in the poller either. any ideas? it doesnt say nan just 0.00


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 57 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group