Re: the enterprises . ucdavis . systemStats . ssCpuIdle represent the percentage instantly??

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 04/08/06, Elias Bou Rahal <[email protected]> wrote:
>     the OID enterprises . ucdavis . systemStats . ssCpuIdle is returning the
> percentages of idle cpu time instantly or percentages in one hour ?

"percentage of idle CPU time instandly" is meaningless.
At a single instant, the CPU is either working (idle=0%) or not (idle=100%).
And since the agent requires the CPU to run, it'll almost certainly be working!

In fact, the ssCpuIdle (and similar) stats are fundamentally broken,
and really ought to be removed (IMO).   The MIB definitions are
insufficiently precise, and the implementation differs from one O/S to
another.

>    if it s the percentages of idle cpu time instantly , do we have anyway to
> collect the percentages of idle cpu time in hour ?

The best (most reliable/flexible/etc) approach is to use the ssCpuRaw*
statistics.  Sample this value - wait a while and sample it again.
The difference between the two readings (compared to the maximum
possible) will give you the percentage idle, busy, etc over that
period.
   You want per-hour statistics - compare samples taken 1 hour apart.
   You want per-minute statistics - compare samples taken 1 minute apart.
   You want per-year statistics - compare samples taken 1 year apart  :-)

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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
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.