Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


CPU Utilisation % Calculation Help Needed

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: General
Author Message
dbuchner



Joined: 13 Mar 2008
Posts: 13
Location: Sydney

PostPosted: Thu Aug 28, 2008 8:21 pm    Post subject: CPU Utilisation % Calculation Help Needed Reply with quote

Hi,

I am trying to calculate CPU % based on ucd_ssCpuRawIdle on several Solaris 10 hosts. Rather than grabbing kernel + user + wait to come to a total I figured it would be easier to simply grab RawIdle subtract this from 100 to get the total cpu usage.

On individual hosts this works fine but when trying to aggregate several hosts onto one graph I am really not getting anywhere with the calculation to obtain the correct figures for the %'s.

E.g. In the below screenshot I am trying to trend 11 hosts (one host per line, nevermind the colors atm) on the one graph.

The first issue is that the calculation applied to the RAWIdle won't work with multiple hosts since its a relative percentage:

CURRENT_DATA_SOURCE,100,*,ALL_DATA_SOURCES_NODUPS,/

I guess at the end of the day, I don't care how its done, I just don't seem to be able to figure out how to do this the most effective way. Has anyone else had any experiences with trying to display multiple DEFs on the one graph where each DEF is reflected as a relative % of 100?



Picture 1.png
 Description:
 Filesize:  139.17 KB
 Viewed:  233 Time(s)

Picture 1.png


Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12295
Location: Muenster, Germany

PostPosted: Fri Aug 29, 2008 2:49 pm    Post subject: Reply with quote

I suppose this may be solved using the COMPUTE data source featured by rrdtool. Then you may perform any CDEF on rrd file level and simply graph the resulting COMPUTE. This feature will be supported with cacti 0.8.8. Expect a beta in Nov/Dec or try current main trunk
Reinhard
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: General All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group