I have ~150 PDUs in the data center and I wish to produce an output that will list each PDU by name in one column and in subsequent columns I need MIN, MAX, AVG for Temperature, Humidity, Amps (x3 by phase), Voltage, (x3 by phase) Watts (x3 by phase) over the previous 7 days with two final columns providing kWh and the date/time of the report so 35 columns total with only one row per PDU. My SQL skills are very dated so any help someone wants to provide would need to be pretty specific. The output, when it is all said and done, needs to be .CSV so that numbers will be seen in Excel as numbers.
This is for a project I am working to track all aspects of compute racks to provide overall an overall view of capacity and health. The spreadsheet visually depicts rack space, network port availability, patch panel availability, fiber availability and, with help from the Thwack community, it will show temperature and humidity values as well. In all there are 13 aspects depicted allowing a quick analysis on remaining data center resources and areas of concern.