pcp
[Top] [All Lists]

Re: [pcp] Developing Plugins

To: Jason Potter <jason@xxxxxxxxxxxxxxx>
Subject: Re: [pcp] Developing Plugins
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Sun, 26 Feb 2012 08:59:46 +1100
Cc: pcp@xxxxxxxxxxx
In-reply-to: <CAE+NyDLAMsBy-6Ej3WfYjnCAcWCsLmHfPd18Cu3cvKK_KjBcEA@xxxxxxxxxxxxxx>
References: <CAE+NyDLAMsBy-6Ej3WfYjnCAcWCsLmHfPd18Cu3cvKK_KjBcEA@xxxxxxxxxxxxxx>
On Sat, 2012-02-25 at 23:02 +1100, Jason Potter wrote:
> Hi All,
> 
> 
> Have been introduced to PCP via Chandana who has been helping me out.
>  I am now wanting to try and build a pcp plugin that will monitor some
> aspects of openvpn.  I would look to do it in perl.  Does anyone have
> some pointers to documentation of the framework for a plugin?

Welcome Jason.

For background info on building a plugin (aka PMDA in PCP-speak), check
out 
http://techpubs.sgi.com/library/tpl/cgi-bin/browse.cgi?coll=0650&db=bks&cmd=toc&pth=/SGI_Developer/PCP_PG

this documentation pre-dates the Perl support, but the concepts and
steps involved remain the same.

For the Perl pieces, and in particular PCP::PMDA, I'm afraid it is down
to reading the existing code.

Clone the git repository from git://oss.sgi.com/pcp/pcp.git then check
the directory src/pmdas ... there is one subdirectory here per PMDA, and
lots of them have names like pmdafoo.pl ... browse and pick one that
looks close to what you'll need and use that as the starting point.

Good luck, and don't hesitate to ask here if you get stuck.



<Prev in Thread] Current Thread [Next in Thread>