>>> On 3/24/2010 at 07:22 PM, in message
<57153a00-be68-4cee-b867-4cea86925...@crackpot.org>, Alex Dean
<a...@crackpot.org> wrote: 

> On Mar 24, 2010, at 3:40 PM, Brad Nicholes wrote:
> 
>> [Moved to the dev list]
>>
>>>>> On 3/22/2010 at 7:49 AM, in message
>> <alpine.lrh.2.00.1003221347360.18...@beaker.phy.bris.ac.uk>, Winnie  
>> Lacesso
>> <winnie.lace...@bristol.ac.uk> wrote:
>>
>>> Dear All,
>>>
>>> I'm new to ganglia, but it looks wonderful.
>>> Platform is Scientific Linux 4 & 5.
>>> Due to no firewall > 1024 it might be more prudent for ganglia to use
>>> ports < 1024 - I'm nervous to have anything php-related listening on
>>> unfirewalled network. Am trying to configure ganglia using ports 849,
>>> 851 for xml & 852 for interactive.
>>> Since gmetad & gmond run as user ganglia, I think this is the  
>>> problem - it
>>> can't create ports < 1024?
>>> Errors are
>>> tcp_listen() on xml_port failed: Permission denied
>>>
>>> I can't seem to find any example where ganglia is used with ports <  
>>> 1024.
>>> Impossible?
>>> Pointers gratefully deferenced
>>>
>>
>> The problem here is that the socket creation is happening after  
>> gmond has dropped root.  Therefore unless the runas user has  
>> sufficient rights to create a port <1024 you will run into problems  
>> trying to use ports <1024.
>>
>> I know there was a lot of discussion several months ago about when  
>> to daemonize and when to setuid.  Can somebody who is more familiar  
>> with the discussion respond with what the outcome was?  Carlo,  
>> Daniel  maybe??
>>
>> Can we just move the calls to setup_listen_channels_pollset and  
>> Ganglia_udp_send_channels_create before the call to  
>> setid_if_necessary?  It would still be happening after the call to  
>> daemonize_if_necessary.
> 
> There's nothing written in PHP listening anywhere is there?  No daemon  
> processes written in PHP.  PHP is run as an Apache module, so it will  
> be on whatever port Apache is listening on and (presumably) will be  
> running as an unprivileged user.

No, this is an issue with gmond only

 Brad


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to