pcp
[Top] [All Lists]

disabling syslog in pmieconf

To: pcp@xxxxxxx
Subject: disabling syslog in pmieconf
From: Martin Hicks <mort@xxxxxxx>
Date: Mon, 14 Apr 2008 13:26:18 -0500
Sender: pcp-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.9i
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


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