[collectd] Help With Plugin Exec

Raviprakash Ramanujam ravi87 at gmail.com
Sat Jun 12 18:42:23 CEST 2010


Hi Florian,

My script does not print anything to STDERR and I am not trying to access
the log file at all! I have no idea why this error occurred.

-Ravi

On Sat, Jun 12, 2010 at 1:42 AM, Florian Forster <octo at verplant.org> wrote:

> Hi Ravi,
>



> On Wed, Jun 09, 2010 at 12:01:24PM -0700, Raviprakash Ramanujam wrote:
> > I have a python script that needs to run under root privileges […]
> > […]
> > In order to run the script as root, […]
>
> > <Plugin exec>
> >         Exec "nobody:root" "/root/script.py"
> > </Plugin>
>
> this configuration will run the script as user "nobody" and group
> "root". Running scripts as root is not possible. You can, however, use
> "sudo" inside the script to re-gain root privileges if required.
>
> > exec plugin: exec_read_one: error = logfile plugin: fopen
> (/var/log/collectd.log) failed: Permission denied
>
> You're doing something mighty weird here: Why is the script printing
> something about the "logfile plugin" to STDERR? And why is it trying to
> access the log file directly?
>
> Regards,
> —octo
> --
> Florian octo Forster
> Hacker in training
> GnuPG: 0x91523C3D
> http://verplant.org/
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFME0hhHdggu3Q05IYRAtPDAKCES5xfvIzE6WxXsK6J5jCD52FaxQCfZW5C
> B1S56JisxUYkJ2kaP1oTz/A=
> =7VaW
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.verplant.org/pipermail/collectd/attachments/20100612/0bb6da89/attachment.htm 


More information about the collectd mailing list