Hello,
I had gmetad running on a 32 bit machine for months. Now I installed gmetad on
a 64 bit machine and copied the same gmetad.conf from the old machine to the
new one. Both machines are currently running and collecting. The problem is
that when I go into cluster view for any of the clusters I get the following
errors at the top of the page.
"Notice: Undefined index: in /var/www/html/ganglia/cluster_view.php on line
21
Warning: array_key_exists() [function.array-key-exists]: The second argument
should be either an array or an object in
/var/www/html/ganglia/cluster_view.php on line 21
Notice: Undefined index: in /var/www/html/ganglia/functions.php on line 209
Warning: array_key_exists() [function.array-key-exists]: The second argument
should be either an array or an object in /var/www/html/ganglia/functions.php
on line 209."
This only happens on the new machine. I saw in the functions.php file it says,
# Some common functions for the Ganglia PHP website.
# Assumes the Gmeta XML tree has already been parsed,
# and the global variables $metrics, $clusters, and $hosts
# have been set.
This is the function in functions.php that is giving the error,
197 # Finds the min/max over a set of metric graphs. Nodes is
198 # an array keyed by host names.
199 #
200 function find_limits($nodes, $metricname)
201 {
202 global $metrics, $clustername, $rrds, $rrd_dir, $start, $end;
203
204 if (!count($metrics))
205 return array(0, 0);
206
207 $firsthost = key($metrics);
208 if (array_key_exists($metricname,$metrics[$firsthost])) {
209 if ($metrics[$firsthost][$metricname]['TYPE'] == "string"
210 or $metrics[$firsthost][$metricname]['SLOPE'] == "zero")
211 return array(0,0);
212 }
213 else {
214 return array(0,0);
215 }
Any help would really be appreciated :)
~Mike
------------------------------------------------------------------------------
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general