Today, Gonéri Le Bouder wrote forth saying...
> 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.
i'm not clear here for trusted_sources means but given the format of the
lines below.. i think you mean the gmetad_sources file.
to clear up the confusion here. there are only two configuration files
for gmetad: gmetad_sources and gmetad_trusted_hosts.
gmetad_sources
this file lists all the gmond sources you want to pull data from
gmetad_trusted_hosts
this file lists all the hosts gmetad will share its XML data with
(this XML data is the contatenation of all gmond sources)
by default, any connection from 127.0.0.1 for data is allowed.
> 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
this gmetad_sources file would likely be a big waste of network bandwidth.
here's why. i'm assuming the node1, node2, node3, and node4 all part of
the same cluster and therefore have the same XML information.
in this config, gmetad will pull the data from each data source thinking
they are for different clusters (because they have different data source
names).
the reason it only appears as one cluster in the XML is this. i'm
assuming that node1, node2, node3, and node4 all have the same
/etc/gmond.conf. it so, then you are pulling the exact same XML data four
times (three times it just overwrites the data with the exact same
values).
here is a better gmetad_sources file
my_cluster 192.168.200.11 8649
my_cluster 192.168.200.12 8649
my_cluster 192.168.200.13 8649
my_cluster 192.168.200.14 8649
with this setup, gmetad knows that there is one cluster with redundant
data sources (192.168.200.{11,12,13,14}). it is important that the gmond
running on each of these machines "trust" the machine running gmetad.
make sense?
-matt