template pro_lcg2_service_ganglia_server; # ---------------------------------------------------------------------------- # chkconfig # ---------------------------------------------------------------------------- include pro_software_component_chkconfig; "/software/components/chkconfig/service/gmetad/on" = ""; "/software/components/chkconfig/service/httpd/on" = ""; # ---------------------------------------------------------------------------- # iptables # ---------------------------------------------------------------------------- #include pro_software_component_iptables; include pro_software_component_filecopy; ## if you work with a mixed private/public network, make sure that the it can reach the nodes (through some portforwarding mechanism somewhere). these node must be specified in the data_source in gmetad.conf. we have # /sbin/iptables -A FORWARD -p tcp -i eth1 -d 192.168.11.1 --dport 8649 -j ACCEPT #/sbin/iptables -t nat -A PREROUTING -p tcp -i eth1 -d 193.190.246.229 --dport 8649 -j DNAT --to 192.168.11.1:8649 #on our nat, and one should add an entry to the routing table of the ganglia server to match this, like # route add -host node11-1.wn.iihe.ac.be gw q2.iihe.ac.be #use the folowing for this #include pro_software_component_filecopy; # #define variable CONTENTS = < tags, we ignore all tags we see, and always assume # we are the "authority" on data source feeds. This approach does not scale to # large groups of clusters, but is provided for backwards compatibility. # default: on # scalability off # #------------------------------------------------------------------------------- # The name of this Grid. All the data sources above will be wrapped in a GRID # tag with this name. # default: Unspecified gridname "ULB-VUB GRID" # #------------------------------------------------------------------------------- # The authority URL for this grid. Used by other gmetads to locate graphs # for our data sources. Generally points to a ganglia/ # website on this machine. # default: "http://hostname/ganglia/", # where hostname is the name of this machine, as defined by gethostname(). # authority "http://mycluster.org/newprefix/" #authority "http://q2.iihe.ac.be/ganglia/" # #------------------------------------------------------------------------------- # List of machines this gmetad will share XML with. Localhost # is always trusted. # default: There is no default value trusted_hosts gridce.iihe.ac.be node11-1.wn.iihe.ac.be # #------------------------------------------------------------------------------- # If you want any host which connects to the gmetad XML to receive # data, then set this value to "on" # default: off # all_trusted on # #------------------------------------------------------------------------------- # If you don't want gmetad to setuid then set this to off # default: on # setuid off # #------------------------------------------------------------------------------- # User gmetad will setuid to (defaults to "nobody") # default: "nobody" # setuid_username "nobody" # #------------------------------------------------------------------------------- # The port gmetad will answer requests for XML # default: 8651 # xml_port 8651 # #------------------------------------------------------------------------------- # The port gmetad will answer queries for XML. This facility allows # simple subtree and summation views of the XML tree. # default: 8652 # interactive_port 8652 # #------------------------------------------------------------------------------- # The number of threads answering XML requests # default: 4 #server_threads 10 # #------------------------------------------------------------------------------- # Where gmetad stores its round-robin databases # default: "/var/lib/ganglia/rrds" # rrd_rootdir "/some/other/place" EOF "/software/components/filecopy/services" = npush(escape("/etc/gmetad.conf"), nlist("config",CONTENTS, "restart","/etc/init.d/gmetad restart", "perms","0644"));