Re: Solaris 10 and net-snmp-5.4.1 compilation option for /proc method

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Zhong, Ping wrote:
> Solaris 10 bundled net-snmp-5.0.9 in the distribution.  It compiled with
> /proc/{pid}/psinfo method.  With that method, the prCount for actual
> oracle process such as ora_pmon_* is zero.  It treat all ora_* as oracle.
> 
> I read the net-snmp/agent/mibgroup/proc.c, there's a kvm_getprocs
> method.  But Solaris 10 has no kvm_getprocs function, it has kvm_getproc
> in lkvm lib.
> 
> Does anyone know how to compile without the /proc method or how to
> monitor the actual oracle process such as ora_*?

The file include/net-snmp/system/solaris.h defines _SLASH_PROC_METHOD_
for Solaris 2.6 and higher which makes agent/mibgroup/ucd-snmp/proc.c
use the /proc/*/psinfo method (line ~700 ff. in that file for 5.4.x).

If this code doesn't behave properly in your environment, please feel
free to propose a fix (rather than switching to the old libkvm methods).

If you can't find the fix, please at least file a bug on
http://www.net-snmp.org/bugs.


+Thomas

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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.