| To: | nscott@xxxxxxxxxx |
|---|---|
| Subject: | Re: Args run together in pmie actions |
| From: | Martin Hicks <mort@xxxxxxx> |
| Date: | Tue, 29 Apr 2008 17:35:07 -0500 |
| Cc: | Ken McDonell <kenj@xxxxxxxxxxxxxxxx>, pcp <pcp@xxxxxxx> |
| In-reply-to: | <35796.192.168.3.1.1209504742.squirrel@xxxxxxxxxxxxxxx> |
| References: | <20080429161941.GF6076@xxxxxxxxxxxxxxxxxxxxxxxxx> <1209502039.31660.9.camel@xxxxxxxxxxxxxxxx> <20080429211724.GN6076@xxxxxxxxxxxxxxxxxxxxxxxxx> <35796.192.168.3.1.1209504742.squirrel@xxxxxxxxxxxxxxx> |
| Sender: | pcp-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.9i |
On Wed, Apr 30, 2008 at 07:32:22AM +1000, nscott@xxxxxxxxxx wrote: > > > > On Tue, Apr 29, 2008 at 08:47:19PM +0000, Ken McDonell wrote: > >> This is not a bug, it is designed to work that way ... 8^)> > >> > >> The %i %v and %h substitution occurs in buidling the string and the > >> action is fired once. > >> > >> If you rewrite the rule thusly, all will be well ... > >> > >> ... -> syslog "there is a load" " [%i] %v"; > > > > Thanks guys. So "shell" actions just have to iterate through multiple > > args and figure out how many instances are true... > > Only the "true" instances are passed to the shell action. Right. Bad description on my part. mh |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | pcp updates, nscott |
|---|---|
| Next by Date: | pcpweb updates, nscott |
| Previous by Thread: | Re: Args run together in pmie actions, Martin Hicks |
| Next by Thread: | pmParseMetricSpec(3) problems, nscott |
| Indexes: | [Date] [Thread] [Top] [All Lists] |