On 02/02/2008, yuchen lu <[EMAIL PROTECTED]> wrote:
> What exactly I meant is that, suppose netsnmp uses a command (e.g. "df -a"
> or a c function) to fetch the data for hrStorageTable, is it possible to
> change or tune  this command(e.g. change it to use "df" instead) in its
> configuration file?

No.  The mechanisms used for retrieving data are hard-coded into the
agent binary.  It's not possible to change this code via snmpd.conf directives.

Note that the agent will typically be using C-level API calls.   Executing a
subprocess (e.g. "df") is very much a last resort.   Normally we'd use the
equivalent code instead.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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

Reply via email to