On Mar 24, 2010, at 3:40 PM, Brad Nicholes wrote:
[Moved to the dev list]<alpine.lrh.2.00.1003221347360.18...@beaker.phy.bris.ac.uk>, Winnie LacessoOn 3/22/2010 at 7:49 AM, in message<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 - itcan't create ports < 1024? Errors are tcp_listen() on xml_port failed: Permission deniedI can't seem to find any example where ganglia is used with ports < 1024.Impossible? Pointers gratefully deferencedThe 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.
alex
PGP.sig
Description: This is a digitally signed message part
------------------------------------------------------------------------------ Download Intel® 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