[collectd] process stat plugin [was: New plugin developer
documentation]
David Bacher
drbacher at gmail.com
Fri Apr 7 09:51:57 CEST 2006
Hello,
> > On Thu, Apr 06, 2006 at 05:20:53AM -0700, cydvd at autistici.org wrote:
> >
> >>I'm trying to write a plugin for collect information about a generic
> >>process reading the /proc/<pid>/stat informations,
I am interested in a plugin like this. In fact I started to code it up
before getting stuck with the problem of keeping track of which pids
were threads of one process and which were actually distinct
processes. Ideally, I'd like to keep track of the information from
/proc/pid/stat only at the process level. That is, vm size, rss, cpu
time, etc for a process with a particular name.
Is there a way to know whether a given pid is a thread of some parent,
or a distinct process? Does looking at the parent pid and tracing
ancestry give enough information to make the distinction?
Since my day job has gotten busy, I've had less time to devote to this
problem, but I'm still interested in helping if I can.
Cheers,
-dave
On 4/6/06, Rolandas Juodzbalis <rolandas at home.lt> wrote:
> Florian Forster wrote:
> > Hello,
> >
> > On Thu, Apr 06, 2006 at 05:20:53AM -0700, cydvd at autistici.org wrote:
> >
> >>I'm trying to write a plugin for collect information about a generic
> >>process reading the /proc/<pid>/stat informations,
> >
> >
> > there was a mail, about a week ago, by Rolandas Juodzbalis, who wants to
> > do something that sounds very similar. Maybe you should get in touch
> > with him..
>
> My idea is simply calculating number of running process. As I'm running
> web hosting machine, I'm interested seeing how many apache and mysql
> instances are running. This is done, left only integration in to collectd.
>
> Rolandas
>
> _______________________________________________
> Collectd mailing list
> Collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd
>
--
David Bacher _.. ._ ..._ .
drbacher at alum.mit.edu
More information about the Collectd
mailing list