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
|