|
From: pcampbel <hq-...@hy...> - 2007-03-23 15:22:21
|
I have previously gotten assistance from Charles L. on a query to provide system availability, under 2.7.7. select p.name, sum(1440 * (1 - value)) as minutes_down from eam_measurement_data_1d d, eam_measurement m, eam_platform p, eam_measurement_templ t, eam_monitorable_type mt where appdef_type = 1 and monitorable_type_id = mt.id and t.name = 'Availability' and m.template_id = t.id and m.coll_interval is not null and measurement_id = m.id and m.instance_id = p.id and d.timestamp >= (select max(timestamp) - (30.0 * 86400000.0) from eam_measurement_data_1d) group by p.name; However with the client not always starting on servers after a reboot, I need to adjust the data manually or progmatically to more accurately reflect system availability. I have considered using the uptime value but need assistance developing the sql statement to adjust the "value" in the query above. TIA |