[collectd] exec-plugin

Peter Holik peter at holik.at
Fri Feb 15 10:51:48 CET 2008


I collect temperatures from a 1-wire DS18S20 chip connected to /dev/ttyS0 via
digitemp used by exec-plugin.

<Plugin exec>
Exec "nobody:dialout" "/usr/bin/digitemp_DS9097" "-n0" "-d10" "-a" "-q"
"-c/etc/digitemprc" "-oPUTVAL lindev/temp/temperature-%s interval=10 %N:%.2C"

#> ls -la /dev/ttyS0
crw-rw---- 1 root dialout 4, 64 2008-02-15 10:48 /dev/ttyS0

digitemp refuses to run as root so i let it run as nobody with group dialout

I think collect handles groupid's wrong.

Whith this patch (changing egid <-> gid) everything works.

cu Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exec.c.diff
Type: text/x-diff
Size: 421 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080215/496142bc/attachment.diff 

More information about the collectd mailing list