Re: SORRY! I found net-snmp 5.5 didn't provide default implementation to retrieve HOST-RESOURCES-MIB::hrProcessorLoad value, is that so?

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 12 August 2010 04:09, orientropy i <[email protected]> wrote:
> on XP platform, i can't use net-snmp 5.5 to get cpu load information.
>
> should i implement my own handler to retrieve such system information?


It's not necessary to implement a completely new handler for this, no.
What's missing is the relevant code under 'mibgroup/hardware/cpu'

This directory holds the modules responsible for retrieving CPU information
on a variety of architectures, and making it available to the agent in a
standard form.   The host/hr_proc module then makes use of this
to populate the hrProcessorTable  (and the ucd-snmp/vmstat module
makes use of the *same* information to populate the equivalent Net-SNMP
specific CPU statistics).

So in order to implement the hrProcessorTable on a new architecture,
all that is needed is to provide a suitable code file within hardware/cpu.


Or, as Bart suggests, you could look at linking in with the Microsoft
provided DLL.

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
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.