Re: How do I get percentage CPU utilization using ssCpuRawIdle?

malar vizhi <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Thanks Lee....But am not using any third party tool to plot graph....We are
using adobe flex for report module(plotting graph). So, those manipulations
I have to do manually.It will be better for me If I get any idea on
calculating those ticks & all...

Thanks
Malar

On Wed, Jul 1, 2009 at 2:10 PM, Lee Standen <[email protected]>wrote:

>  If you’re putting it into an RRD or something like that, then use a
> DERIVE or COUNTER data type.  That’ll do it all for you.
>
>
>
> If it’s the figures I think it is, then it’s basically the number of
> seconds (or fractions thereof) spent in each state since the system started
> up.
>
>
>
> I’ve just used RRD counters to get these graphs… no special manipulation of
> figures in the data gathering… the percentages are just calculated in the
> rrdgraph command...rrdtool takes care of working out the difference between
> the two figures based on the interval since the last set of data.
>
>
>
>
>
> *From:* malar vizhi [mailto:[email protected]]
> *Sent:* Wednesday, 1 July 2009 4:19 PM
> *To:* [email protected]
> *Subject:* How do I get percentage CPU utilization using ssCpuRawIdle?
>
>
>
> Hello folks,
>
> Am bit confused to calculate the percentage of ssCpuRawIdle or ssCpuRawNice
> or ssCpuRawSystem or ssCpuRawUser of host.
>
> I think ssCpuIdle will give exact percentage value which top command
> shows..but when we see the mib, it is deprecated one. So, We should start of
> using "raw counters". I came to know from net-snmp forums, need to take two
> readings of this object, and find the difference between them. That
> difference divided by the total number of 'ticks' between the two readings
> (probably 0.01 seconds) will give you the percentage utilization.
>
> And this is the forum where our Dave has replied as above...
>
> http://osdir.com/ml/network.net-snmp.user/2004-02/msg00369.html
>
> Where I have freezed is to calculate the total number of ticks...How should
> I calculate the total no of ticks?..or will it be always  0.01 seconds for
> all OS?...
>
> Thanks in Advance....
>
> Malar
>

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
image001.png (image/png, 33.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.