I have attached in text form the two files. I compiled from source because all of my clients at the moment are Fedora Core2, and I am intending to bring up a set of Solaris 8 computers later. I also didn't see a complete set of RPMs on the site to download for all the pieces for RH9.
Ben
# $Id: gmond.conf,v 1.3 2004/01/20 19:15:23 sacerdoti Exp $
# This is the configuration file for the Ganglia Monitor Daemon (gmond)
# Documentation can be found at http://ganglia.sourceforge.net/docs/
#
# To change a value from it's default simply uncomment the line
# and alter the value
#####################
#
# The name of the cluster this node is a part of
# default: "unspecified"
 name  "Viper"
#
# The owner of this cluster. Represents an administrative
# domain. The pair name/owner should be unique for all clusters
# in the world.
# default: "unspecified"
 owner "Herff College of Engineering"
#
# The latitude and longitude GPS coordinates of this cluster on earth.
# Specified to 1 mile accuracy with two decimal places per axis in Decimal
# DMS format: "N61.18 W130.50".
# default: "unspecified"
# latlong "N32.87 W117.22"
#
# The URL for more information on the Cluster. Intended to give purpose,
# owner, administration, and account details for this cluster.
# default: "unspecified"
 url "http://viper.memphis.edu/";
#
# The location of this host in the cluster. Given as a 3D coordinate:
# "Rack,Rank,Plane" that corresponds to a Euclidean coordinate "x,y,z".
# default: "unspecified"
# location "0,0,0"
#
# The multicast channel for gmond to send/receive data on
# default: 239.2.11.71
# mcast_channel 239.2.11.71
#
# The multicast port for gmond to send/receive data on
# default: 8649
# mcast_port    8649
#
# The multicast interface for gmond to send/receive data on
# default: the kernel decides based on routing configuration
 mcast_if  eth1
 mcast_if  eth0
#
# The multicast Time-To-Live (TTL) for outgoing messages
# default: 1
# mcast_ttl  1
#
# The number of threads listening to multicast traffic
# default: 2
# mcast_threads 2
#
# Which port should gmond listen for XML requests on
# default: 8649
# xml_port     8649
#
# The number of threads answering XML requests
# default: 2
# xml_threads   2
#
# Hosts ASIDE from "127.0.0.1"/localhost and those multicasting
# on the same multicast channel which you will share your XML
# data with.  Multiple hosts are allowed on multiple lines.
# Can be specified with either hostnames or IP addresses.
# default: none
# trusted_hosts 1.1.1.1 1.1.1.2 1.1.1.3 \
# 2.3.2.3 3.4.3.4 5.6.5.6
trusted_hosts 127.0.0.1 \
              viper airy
#
# The number of nodes in your cluster.  This value is used in the
# creation of the cluster hash.
# default: 1024
#num_nodes  124
#
# The number of custom metrics this gmond will be storing.  This
# value is used in the creation of the host custom_metrics hash.
# default: 16
# num_custom_metrics 16
#
# Run gmond in "mute" mode.  Gmond will only listen to the multicast
# channel but will not send any data on the channel.
# default: off
# mute on
#
# Run gmond in "deaf" mode.  Gmond will only send data on the multicast
# channel but will not listen/store any data from the channel.
# default: off
# deaf on
#
# Run gmond in "debug" mode.  Gmond will not background.  Debug messages
# are sent to stdout.  Value from 0-100.  The higher the number the more
# detailed debugging information will be sent.
# default: 0
# debug_level 10
#
# If you don't want gmond to setuid, set this to "on"
# default: off
# no_setuid  on
#
# Which user should gmond run as?
# default: nobody
# setuid     nobody
#
# If you do not want this host to appear in the gexec host list, set
# this value to "on"
# default: off
# no_gexec   on
#
# If you want any host which connects to the gmond XML to receive
# data, then set this value to "on"
# default: off
all_trusted on
#
# If you want dead nodes to "time out", enter a nonzero value here. If specified,
# a host will be removed from our state if we have not heard from it in this
# number of seconds.
# default: 0 (immortal)
 host_dmax 108000


Gmetad.conf

# This is an example of a Ganglia Meta Daemon configuration file
#                http://ganglia.sourceforge.net/
#
# $Id: gmetad.conf,v 1.10 2003/08/06 23:11:33 sacerdoti Exp $
#
#-------------------------------------------------------------------------------
# Setting the debug_level to 1 will keep daemon in the forground and
# show only error messages. Setting this value higher than 1 will make
# gmetad output debugging information and stay in the foreground.
# default: 0
# debug_level 10
#
#-------------------------------------------------------------------------------
# What to monitor. The most important section of this file.
#
# The data_source tag specifies either a cluster or a grid to
# monitor. If we detect the source is a cluster, we will maintain a complete
# set of RRD databases for it, which can be used to create historical
# graphs of the metrics. If the source is a grid (it comes from another gmetad),
# we will only maintain summary RRDs for it.
#
# Format:
# data_source "my cluster" [polling interval] address1:port addreses2:port ...
#
# The keyword 'data_source' must immediately be followed by a unique
# string which identifies the source, then an optional polling interval in
# seconds. The source will be polled at this interval on average.
# If the polling interval is omitted, 15sec is asssumed.
#
# A list of machines which service the data source follows, in the
# format ip:port, or name:port. If a port is not specified then 8649
# (the default gmond port) is assumed.
# default: There is no default value
#
# data_source "my cluster" 10 localhost  my.machine.edu:8649  1.2.3.5:8655
# data_source "my grid" 50 1.3.4.7:8655 grid.org:8651 grid-backup.org:8651
# data_source "another source" 1.3.4.7:8655  1.3.4.8

data_source "Viper" viper.memphis.edu 127.0.0.1
#
#-------------------------------------------------------------------------------
# Scalability mode. If on, we summarize over downstream grids, and respect
# authority tags. If off, we take on 2.5.0-era behavior: we do not wrap our output
# in <GRID></GRID> tags, we ignore all <GRID> 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
# scalable off
#
#-------------------------------------------------------------------------------
# The name of this Grid. All the data sources above will be wrapped in a GRID
# tag with this name.
# default: Unspecified
# gridname "MyGrid"
#
#-------------------------------------------------------------------------------
# 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/";
#
#-------------------------------------------------------------------------------
# List of machines this gmetad will share XML with. Localhost
# is always trusted.
# default: There is no default value
# trusted_hosts 127.0.0.1 169.229.50.165 my.gmetad.org
trusted_hosts viper 127.0.0.1
#
#-------------------------------------------------------------------------------
# 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
# 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"


gmond.conf


Bernard Li wrote:

Hi Ben:

It might help to post your gmond.conf and gmetad.conf files.

BTW, any particular reason you're compiling from source?  The provided
RPMs install fine under RH9 systems.

Cheers,

Bernard
-----Original Message-----
From: Benjamin Simmons [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 11:53
To: Peter Schmid
Cc: Bernard Li; [email protected]
Subject: Re: [Ganglia-general] Re: Web Frontend Help - fsockopen error

I have tried adding the port to /etc/services under the name of gmetad. This doesn't seem to get me anywhere. I tried to change the interactive_port in the gmetad.conf file, but that parameter is unknown or is parsed incorrectly based on the error message Starting GANGLIA gmetad: gmetad config file error: Unknown
Config-Option: 'interactive_port' [FAILED]

Any other thoughts as to how to open the port? I assume that gmetad is supposed to do this itself but is failing for some reason on my box. I am running RH9 and Apache 1.3.31, php-4.3.8, and ganglia monitor core
2.5.6 built from source.

Thanks in advance,
Ben Simmons



Peter Schmid wrote:

Ben,

Having telnet open to the outside world does not matter.... you are using telnet to connect to a specific port.. not to telnet's port.

Can you telnet to that machine with the port 8652 from any machine other than itself?

telnet to port 8652 from machine2 to machine1:
machine2> telnet machine1 8652

If that does not work.. than you need to open up port 8652 on the machines to allow access from your other machines.

Pete.

Benjamin Simmons wrote:

I can telnet and see the data if I am on that machine
otherwise I do
not have telnet open to the outside world I only allow ssh
connections.
Ben

Peter Schmid wrote:

Ben,

Quickest way would be to telnet to that machine and port:

telnet machine 8652

If you connect.. your not blocked... you would see XML
data in the
telnet session.

HTH,

Pete.

Benjamin Simmons wrote:

How would I ensure it is not being blocked. I am
Running RH9 and
have no firewall installed.

Ben

Bernard Li wrote:

Hi Ben:

Port 8652 is the default port for XML data - have you made sure that the port is not being blocked?

Cheers,

Bernard


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Behalf Of
Benjamin Simmons
Sent: Wednesday, September 22, 2004 16:56
To: [email protected]
Subject: [Ganglia-general] Re: Web Frontend Help - fsockopen error

I have read through the archives, and just don't see
where in the
.conf files I have I am supposed to make modifications
to correct
this problem.
------Error Message ------------------
Warning: fsockopen(): unable to connect to 127.0.0.1:8652 in /var/www/html/ganglia/ganglia.php on line 273

There was an error collecting ganglia data (127.0.0.1:8652): fsockopen
error: Connection refused
------Error Message ------------------

I recieve this error when I try to access the index.php page after setting up the ganglia software packages. I get
the proper
response from the telnet command. My website is
properly opening
php files.

From the archives:

----snip------
in trusted_sources put the IP of the computer (not
127.0.0.1, it
doesn"t work for me).
in gmetad_sources you MUST add addresse of computer
with gmond or
gmetad running.
If 4 computers with gmond :

node1 192.168.200.11 8649
node2 192.168.200.12 8649
node3 192.168.200.13 8649
node4 192.168.200.14 8649

then, killall gmetad,
/usr/sbin/gmetad to restard gmetad.
----- snip---------

I don't see any entries that are trusted_sources. I see trusted_hosts in gmond.conf

I have the following data source and trusted hosts in my gmetad.conf

data_source "Viper" viper.memphis.edu 127.0.0.1 trusted_hosts viper 127.0.0.1



Is there another file that should exist that I didn't
copy over
or something else I am missing?

Thanks,
Ben Simmons
Univ of Memphis
Mech Engr Dept
Memphis, TN




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best.
Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general






-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be
one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general





-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be
one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general








Reply via email to