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
|