pcp
[Top] [All Lists]

Args run together in pmie actions

To: pcp <pcp@xxxxxxx>
Subject: Args run together in pmie actions
From: Martin Hicks <mort@xxxxxxx>
Date: Tue, 29 Apr 2008 11:19:42 -0500
Sender: pcp-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.9i
Hi,

I found this problem in the SGI version of the pcp rpm, and just
duplicated it with the git tree that I checked out a few minutes ago.
Seems like a bug to me...

When multiple instances are true for a particular pmie rule, the action
is done only once, with the strings all concatenated together.  For
example:

mort@laplace:~/src$ pmie -V
some_inst kernel.all.load > 0 -> syslog "there is a load %i";
expr_1: true

The resulting syslog message is:

Apr 29 12:11:59 laplace pcp-pmie[8568]: there is a load 1 minutethere is a load 
5 minutethere is a load 15 minute


What I think I *should* see is:

Apr 29 12:11:59 laplace pcp-pmie[8568]: there is a load 1 minute
Apr 29 12:11:59 laplace pcp-pmie[8568]: there is a load 5 minute
Apr 29 12:11:59 laplace pcp-pmie[8568]: there is a load 15 minute


This behavior is the same if the action is:

-> shell "my_command %i";

The result being:  my_command 1 minutemy_command 5 minutemy_command 15 minute
being executed...and failing.

A bug or a feature that I don't understand?
thanks
mh


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