On Tue, Apr 15, 2008 at 08:21:33PM +1000, Ken McDonell wrote:
> pmieconf is one of the pcp pieces that never made it to open source ...
> if sgi would like to address that issue, I'd be happy to respond ...
> 8^)>
Well that further highlights my newness to PCP and explains why the
documentation seems pretty crufty and incomplete :)
mh
>
>
> On Mon, 2008-04-14 at 13:26 -0500, Martin Hicks wrote:
> > Hi,
> >
> > Just trying to figure out how to create pmieconf rules. I've figured
> > most of it out, but I'd like to disable the syslog action for my new
> > rule by default. Here's a really simple example:
> >
> > #pmieconf-rules 1
> > # --- DO NOT MODIFY THIS FILE --- see pmieconf(4)
> >
> > rule tempo.simple
> > default = "$string$"
> > predicate = "some_inst ( kernel.all.load > 0.1 )"
> > enabled = no
> > version = 1
> > help = "A dummy pmieconf file";
> >
> > string rule
> > default = "A simple pmieconf rule. No real purpose"
> > display = no
> > modify = no;
> >
> > string delta
> > default = "4 sec";
> >
> > shell simple_action
> > default = "echo $action_expand$ > /tmp/pmieout"
> > display = no
> > modify = no;
> >
> > syslog syslog_action
> > enabled = no
> > default = "";
> >
> >
> > When I enable this rule I'd *like* it to only have my $simple_action$
> > and disable the syslog_action. What's the right way to do that? The
> > above produces this pmie:
> >
> > // 1 tempo.simple
> > delta = 4 sec;
> > tempo.simple =
> > some_inst ( kernel.all.load > 0.1 ) -> shell 10 min "echo %v@%h >
> > /tmp/pmieout"
> > & syslog 10 min "A simple pmieconf rule. No real purpose" " %v@%h";
> >
> > thanks
> > mh
> >
> >
|