Hi, I found a minor bug (or so I think) in the PHP/RRD plugin. The problem is that when I only had one host running gmond (the master) and went to the host.php page, I got two warnings
about variables; the code is here:

$host_detail = ganglia_host_detail( $host );
ksort($host_detail);
$i=0;
while( list($k, $v) = each($host_detail) )

The warnings are:
Warning: Wrong datatype in ksort() call in /var/www/ganglia/host.php on line 91 Warning: Variable passed to each() is not an array or object in /var/www/ganglia/host.php on line 93

when > 1 host is running gmond OK, then there is no error message. The contents of $host_detail appear to be
the empty string when the problem exhibits.

Dave



Reply via email to