2010/1/7 astal vista <[email protected]>:
> 2)" I want to monitor one application (for ex: httpd), how many threads
> associated with it and how much memory that each thread is occupying ".

If these are separate threads within the same process, then that's
not possible.   The Host Resources MIB works on the process level.
You can get statistics on individual processes, but not separate
threads within that process.

If you want to know how many httpd processes are running,
have a look at the "proc" directive  (in snmpd.conf(5)).
Then walk the UCD-SNMP-MIB::prTable
  (in particular, look at prCount)

As for how much memory each httpd process is using,
then that's the job of the hrSwRunPerfMemory object,
which you've already been told about.
   You'll need to know the process IDs of the web server
processes - try walking the hrSWRunName object to
retrieve this information.  (That would also let you
count the number of httpd processes)

Dave

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-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

Reply via email to