Re: Linux number of CPUs?

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2008/12/30 Les Mikesell <[email protected]>:
> On Linux, how should a monitoring program scale the load average and cpu
> use values to determine when a machine has reached capacity? Is there a
> way to get the number of CPUs from linux net-snmp, or per-cpu  usage values?

Which version of the agent are you using?

The HOST-RESOURCES-MIB::hrProcessorTable should report the number
of processors detected.   But agents up to (and including)l the 5.3.x line
fudged the hrProcessorLoad object, and simply returned a common value
based on the overall load average.

The 5.4.x agent now attempts to report this value properly.

Note that the UCD-SNMP-MIB cpu statistics and load average objects
are overall values, and do not handle individual CPUs.



[email protected] wrote
> RFC 2790 HOST-RESOURCES-MIB is defined for managing host systems.
> This has objects which give information about CPU usage (in no of
> centi-seconds) by each process.

Note that these objects refer to the usage of individual running processes,
not how busy each CPU might be.
   That's the role of the hrProcessorLoad object.

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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.