Way back in webfrontend version 2.5.3, two pseudo metrics were included in the metric list when looking at the cluster view (gmond_started & last_reported). They are actually attributes to the HOST tag, but were included in the metric list like all of the other real metrics. They appear to have been lost in the major changes that took place in version 2.5.4, but since I missed having them, I made this patch which puts them back into the list.
~Jason -- /------------------------------------------------------------------\ | Jason A. Smith Email: [EMAIL PROTECTED] | | Atlas Computing Facility, Bldg. 510M Phone: (631)344-4226 | | Brookhaven National Lab, P.O. Box 5000 Fax: (631)344-7616 | | Upton, NY 11973-5000 | \------------------------------------------------------------------/
diff -uNr ganglia-webfrontend-2.5.7-dist/ganglia.php ganglia-webfrontend-2.5.7/ganglia.php --- ganglia-webfrontend-2.5.7-dist/ganglia.php 2004-10-05 19:46:28.000000000 -0400 +++ ganglia-webfrontend-2.5.7/ganglia.php 2004-12-15 14:20:46.000000000 -0500 @@ -138,6 +138,13 @@ $cluster[HOSTS_DOWN]++; $hosts_down[$hostname] = $attrs; } + # Add the gmond_started & last_reported HOST attributes to the metrics list: + $metrics[$hostname][gmond_started][NAME] = "GMOND_STARTED"; + $metrics[$hostname][gmond_started][VAL] = $attrs[GMOND_STARTED]; + $metrics[$hostname][gmond_started][TYPE] = "timestamp"; + $metrics[$hostname][last_reported][NAME] = "REPORTED"; + $metrics[$hostname][last_reported][VAL] = uptime($cluster[LOCALTIME] - $attrs[REPORTED]); + $metrics[$hostname][last_reported][TYPE] = "string"; break; case "METRIC":