[collectd] multiple <Exec> sections?

Florian Forster octo at collectd.org
Fri Sep 24 10:50:49 CEST 2010


Hi Neal,

On Thu, Sep 23, 2010 at 04:17:22PM -0700, Neal Tucker wrote:
> Is there a way I can define two <Exec> sections without having one
> clobber the other?  Is there another way to solve this problem?

yes, all you have to do it repeat the '<Plugin "exec">' block. For
example:

-- 8< --
# File "group-0/task-a"
<Plugin "exec">
  Exec "task-a-user" "/usr/local/lib/collectd/task-a"
</Plugin>
-- >8 --

-- 8< --
# File "group-1/task-b"
<Plugin "exec">
  Exec "task-b-user" "/usr/lib/collectd/task-b" "arg0"
</Plugin>
-- >8 --

HTH. Regards,
—octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x0C705A15
http://octo.it/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20100924/2db6d3cc/attachment.pgp>


More information about the collectd mailing list