pcp
[Top] [All Lists]

Re: PMDA

To: Sadanand Kota <sada@xxxxxxxxxxx>
Subject: Re: PMDA
From: Nathan Scott <nathans@xxxxxxx>
Date: Wed, 3 Oct 2001 16:58:53 +1100
Cc: pcp@xxxxxxxxxxx
In-reply-to: <Pine.GSO.4.21.0110030032230.11801-100000@pollux.cis.ksu.edu>; from sada@cis.ksu.edu on Wed, Oct 03, 2001 at 12:38:27AM -0500
References: <Pine.GSO.4.21.0110030032230.11801-100000@pollux.cis.ksu.edu>
Sender: owner-pcp@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
hi,

On Wed, Oct 03, 2001 at 12:38:27AM -0500, Sadanand Kota wrote:
> Hi,
> I am writing a new PMDA to collect network statistics. I have a separate

Hmm - seems like everyones doing that lately. ;-)

> routine to fetch the values for n/w characteristics.
> I just need to call this  separate routine to initialize the values for
> my PMDA. But from where should I call this routine i.e do I need to call

You should call it from the "fetch" routine.  Have a look at
the "simple" PMDA - /var/pcp/pmdas/simple/simple.c is all of
its source.

> it from init() function or from fetcahCallback() function or from other
> function?

Neither of these - the "fetch" routine is separate to both the
"init" and "fetchCallback" routines.  The simple PMDA implements
all three of these routines (just as you will need to do).

cheers.

-- 
Nathan

<Prev in Thread] Current Thread [Next in Thread>
  • PMDA, Sadanand Kota
    • Re: PMDA, Nathan Scott <=