Re: [Ganglia-general] Writing metrics

2010-12-08 Thread Antonio Óscar Balmaseda
Hello, 2010/12/7 David Birdsong david.birds...@gmail.com The examples have the open somewhere else which neither correct or incorrect. It just requires that you understand the loss of privileges that the gmond process undergoes as it daemonizes itself. Any resource, ie. access_log file,

Re: [Ganglia-general] Writing metrics

2010-12-07 Thread Antonio Óscar Balmaseda
Hello, again, Alex, thanks for your response. I rechecked all the permissions and everything was fine. 2010/12/6 David Birdsong david.birds...@gmail.com If you put that open inside of metric_init, start gmond as root, then the filehandle will be created before gmond drops it's privileges to

Re: [Ganglia-general] Writing metrics

2010-12-07 Thread David Birdsong
On Tue, Dec 7, 2010 at 5:56 AM, Antonio Óscar Balmaseda antonio.o.balmas...@gmail.com wrote: Hello, again, Alex, thanks for your response. I rechecked all the permissions and everything was fine. 2010/12/6 David Birdsong david.birds...@gmail.com If you put that open inside of metric_init,

[Ganglia-general] Writing metrics

2010-12-06 Thread Antonio Óscar Balmaseda
Hi, everyone, I have a strange problem. I'm writing a new metric for ganglia, in python, in order to measure some data of the apache log. I'm pretty sure that the code is correct but the thing is that it's absolutely impossible open any file. When I try do it, the system returns: Traceback

Re: [Ganglia-general] Writing metrics

2010-12-06 Thread Alex Dean
On Dec 6, 2010, at 3:16 PM, Antonio Óscar Balmaseda wrote: Hi, everyone, I have a strange problem. I'm writing a new metric for ganglia, in python, in order to measure some data of the apache log. I'm pretty sure that the code is correct but the thing is that it's absolutely impossible

Re: [Ganglia-general] Writing metrics

2010-12-06 Thread David Birdsong
If you put that open inside of metric_init, start gmond as root, then the filehandle will be created before gmond drops it's privileges to the user configured. On Mon, Dec 6, 2010 at 4:16 PM, Antonio Óscar Balmaseda antonio.o.balmas...@gmail.com wrote: Hi, everyone, I have a strange problem.