quote:Originally posted by Jeminiyou may search "yahoo chart" in this forum which tells a limited way to customize the chart: the unit in x-axial and y-axial,the color of graph and titles, but the data should be queried from the database using SQL.
quote:Originally posted by lucast quote:Originally posted by Jeminiyou may search "yahoo chart" in this forum which tells a limited way to customize the chart: the unit in x-axial and y-axial,the color of graph and titles, but the data should be queried from the database using SQL.
quote:readme.txtOrion NetPerfMon Chart Extensions - Yahoo Internet ConsolidationSolarWinds Development October 18, 2004These charts can be used to show traffic for a group of interfaces combined.They are typically used to show the total bytes transferred over aggregated Internet links.Unzip this file and place the Yahoo-NetPerfMon.Charts in your "Program Files\SolarWinds\Network Performance Monitor V7" directory.You will then need to add a custom property named "Service" to "Interfaces" using the Custom Property Editor.Set the "Service" property for each interface you would like included in the chart to "Internet".Now let's add a couple of charts to a Summary View. Login to your Orion web site as "Admin".Select "Admin" from the top menu and then select "Custom Views" from the Admin menu on the left.Select any view and click "edit".Add the "Custom Network Wide Chart" resource from the "Network Wide Summary Charts" group.Preview the view and scroll down to the newly added resource. Edit the resource (select the "Click Here" text or the edit icon in the upper left corner)Now select one of the new "Yahoo" charts.The chart will display data from each of the interfaces with Service=Internet combined on a single chart.
Orion NetPerfMon Chart Extensions - Yahoo Internet ConsolidationSolarWinds Development October 18, 2004These charts can be used to show traffic for a group of interfaces combined.They are typically used to show the total bytes transferred over aggregated Internet links.Unzip this file and place the Yahoo-NetPerfMon.Charts in your "Program Files\SolarWinds\Network Performance Monitor V7" directory.You will then need to add a custom property named "Service" to "Interfaces" using the Custom Property Editor.Set the "Service" property for each interface you would like included in the chart to "Internet".Now let's add a couple of charts to a Summary View. Login to your Orion web site as "Admin".Select "Admin" from the top menu and then select "Custom Views" from the Admin menu on the left.Select any view and click "edit".Add the "Custom Network Wide Chart" resource from the "Network Wide Summary Charts" group.Preview the view and scroll down to the newly added resource. Edit the resource (select the "Click Here" text or the edit icon in the upper left corner)Now select one of the new "Yahoo" charts.The chart will display data from each of the interfaces with Service=Internet combined on a single chart.
quote:<!--Yahoo custom Internet charts--><!--Copyright 2004 SolarWinds.Net All rights reserved--><!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by () --><Charts> <YahooPercentUtilization> <ID>YahooAvgUtil</ID> <Poller>Summary</Poller> <Name>Yahoo - Network Wide Percent Utilization</Name> <SQL>SELECT Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0) As DateTime, Avg([In_Averagebps]/[inBandwidth]*100) AS InPercentUtil, Avg([Out_Averagebps]/[OutBandwidth]*100) AS OutPercentUtilFROM (InterfaceTraffic INNER JOIN Nodes ON InterfaceTraffic.NodeID = Nodes.NodeID) INNER JOIN Interfaces ON InterfaceTraffic.InterfaceID = Interfaces.InterfaceID WHERE (Interfaces.InBandwidth>0) AND (Interfaces.OutBandwidth>0) AND Interfaces.Service='Internet'And DateTime >= ${PeriodBegin} And DateTime <= ${PeriodEnd}GROUP BY Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0)Order By DateTime</SQL> <Where>Interfaces.Service='Internet'</Where> <Title>Internet Percent Utilization</Title> <SubTitle>Percent Utilization on Internet Interfaces</SubTitle> <SubTitle2>${Period}</SubTitle2> <PlotStyle>Bar</PlotStyle> <Units>%</Units> <ComparisonSubsets>0</ComparisonSubsets> <RAxisSubsets>0</RAxisSubsets> <DataTable>InterfaceTraffic</DataTable> <Rescaleable>No</Rescaleable> <Icon>Step</Icon> <Axises> <XAxis> <Label/> </XAxis> <RYAxis> <Label>% packet loss</Label> <ManualScale>Both</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>102</ScaleMax> <AxisColor>&H000000FF&</AxisColor> <Format>||%</Format> </RYAxis> <YAxis> <Label/> <ManualScale>Both</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>100</ScaleMax> <AxisColor/> <Format>| ,| %</Format> </YAxis> </Axises> <PlotStyles> <Line/> <Bar/> <Spline/> <Step/> <Ribbon/> <Points/> <PointsPlusLine/> <PointsPlusSpine/> <BestFitCurve/> <BestFitLine/> <Area/> </PlotStyles> <Subsets> <InPercentUtil> <Name>Receive Utilization</Name> <Field>InPercentUtil</Field> <Color>&H00FF8080&</Color> <PointStyle>2</PointStyle> <LineStyle>Medium</LineStyle> <SubsetType>Avg</SubsetType> <Direction>Receive</Direction> </InPercentUtil> <OutPercentUtil> <Name>Transmit Utilization</Name> <Field>OutPercentUtil</Field> <Color>&H00008000&</Color> <PointStyle>7</PointStyle> <LineStyle>Medium</LineStyle> <SubsetType>Avg</SubsetType> <Direction>Transmit</Direction> </OutPercentUtil> </Subsets> </YahooPercentUtilization> <YahooTotalXmitBytes> <ID>YahooTotalXmitBytes</ID> <Poller>Summary</Poller> <Name>Yahoo - Total Bytes Transmitted over Internet Connections</Name> <Title>Total Bytes Transmitted over Internet Connections</Title> <SubTitle>Traffic on Internet Interfaces ${SampleSize}</SubTitle> <SubTitle2>${Period}</SubTitle2> <SQL>SELECT Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0) As DateTime, Sum([Out_TotalBytes]) AS TotalBytesFROM (InterfaceTraffic INNER JOIN Nodes ON InterfaceTraffic.NodeID = Nodes.NodeID) INNER JOIN Interfaces ON InterfaceTraffic.InterfaceID = Interfaces.InterfaceID Where DateTime >= ${PeriodBegin} And DateTime <= ${PeriodEnd} And Interfaces.Service='Internet'GROUP BY Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0)Order By DateTime</SQL> <Where>Interfaces.Service='Internet'</Where> <PlotStyle>Bar</PlotStyle> <BarWidth>.75</BarWidth> <ComparisonPlotStyle>Line</ComparisonPlotStyle> <Units>bytes</Units> <ComparisonSubsets>0</ComparisonSubsets> <RAxisSubsets>0</RAxisSubsets> <DataTable>InterfaceTraffic</DataTable> <Rescaleable>Yes</Rescaleable> <Icon>MinMaxAverage2</Icon> <Axises> <XAxis> <Label/> </XAxis> <RYAxis> <Label>% packet loss</Label> <ManualScale>Both</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>102</ScaleMax> <AxisColor>&H000000FF&</AxisColor> <Format>||%</Format> </RYAxis> <YAxis> <Label/> <ManualScale>Min</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>50</ScaleMax> <AxisColor/> <Format>| ,| bytes</Format> </YAxis> </Axises> <PlotStyles> <Line/> <Bar/> <Spline/> <Step/> <Ribbon/> <Points/> <PointsPlusLine/> <PointsPlusSpine/> <BestFitCurve/> <BestFitLine/> <BestFitLineII/> <BestFitCurveII/> <Area/> </PlotStyles> <Subsets> <TotalBytes> <Name>Total Bytes</Name> <Field>TotalBytes</Field> <Color>&H00008000&</Color> <PointStyle>2</PointStyle> <LineStyle>Medium</LineStyle> <SubsetType>Total</SubsetType> <Direction>Transmit</Direction> </TotalBytes> </Subsets> </YahooTotalXmitBytes> <YahooTotalRecvBytes> <ID>YahooTotalRecvBytes</ID> <Poller>Summary</Poller> <Name>Yahoo - Total Bytes Received over Internet Connections</Name> <Title>Total Bytes Received over Internet Connections</Title> <SubTitle>Traffic on Internet Interfaces ${SampleSize}</SubTitle> <SubTitle2>${Period}</SubTitle2> <SQL>SELECT Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0) As DateTime, Sum([In_TotalBytes]) AS TotalBytesFROM (InterfaceTraffic INNER JOIN Nodes ON InterfaceTraffic.NodeID = Nodes.NodeID) INNER JOIN Interfaces ON InterfaceTraffic.InterfaceID = Interfaces.InterfaceID Where DateTime >= ${PeriodBegin} And DateTime <= ${PeriodEnd} And Interfaces.Service='Internet'GROUP BY Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0)Order By DateTime</SQL> <Where>Interfaces.Service='Internet'</Where> <PlotStyle>Bar</PlotStyle> <BarWidth>.75</BarWidth> <ComparisonPlotStyle>Line</ComparisonPlotStyle> <Units>bytes</Units> <ComparisonSubsets>0</ComparisonSubsets> <RAxisSubsets>0</RAxisSubsets> <DataTable>InterfaceTraffic</DataTable> <Rescaleable>Yes</Rescaleable> <Icon>MinMaxAverage2</Icon> <Axises> <XAxis> <Label/> </XAxis> <RYAxis> <Label>% packet loss</Label> <ManualScale>Both</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>102</ScaleMax> <AxisColor>&H000000FF&</AxisColor> <Format>||%</Format> </RYAxis> <YAxis> <Label/> <ManualScale>Min</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>50</ScaleMax> <AxisColor/> <Format>| ,| bytes</Format> </YAxis> </Axises> <PlotStyles> <Line/> <Bar/> <Spline/> <Step/> <Ribbon/> <Points/> <PointsPlusLine/> <PointsPlusSpine/> <BestFitCurve/> <BestFitLine/> <BestFitLineII/> <BestFitCurveII/> <Area/> </PlotStyles> <Subsets> <TotalBytes> <Name>Total Bytes</Name> <Field>TotalBytes</Field> <Color>&H00FF8080&</Color> <PointStyle>2</PointStyle> <LineStyle>Medium</LineStyle> <SubsetType>Total</SubsetType> <Direction>Receive</Direction> </TotalBytes> </Subsets> </YahooTotalRecvBytes> <YahooTotalBytes> <ID>YahooTotalBytes</ID> <Poller>Summary</Poller> <Name>Yahoo - Total Bytes Transfered over Internet Connections</Name> <Title>Total Bytes Transfered over Internet Connections</Title> <SubTitle>Traffic on Internet Interfaces ${SampleSize}</SubTitle> <SubTitle2>${Period}</SubTitle2> <SQL>SELECT Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0) As DateTime, Sum([Out_TotalBytes]) AS Out_TotalBytes,Sum([In_TotalBytes]) AS In_TotalBytesFROM (InterfaceTraffic INNER JOIN Nodes ON InterfaceTraffic.NodeID = Nodes.NodeID) INNER JOIN Interfaces ON InterfaceTraffic.InterfaceID = Interfaces.InterfaceID Where DateTime >= ${PeriodBegin} And DateTime <= ${PeriodEnd} And Interfaces.Service='Internet'GROUP BY Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0)Order By DateTime</SQL> <Where>Interfaces.Service='Internet'</Where> <PlotStyle>Step</PlotStyle> <BarWidth>.75</BarWidth> <ComparisonPlotStyle>Step</ComparisonPlotStyle> <Units>bytes</Units> <ComparisonSubsets>0</ComparisonSubsets> <RAxisSubsets>0</RAxisSubsets> <DataTable>InterfaceTraffic</DataTable> <Rescaleable>Yes</Rescaleable> <Icon>MinMaxAverage2</Icon> <Axises> <XAxis> <Label/> </XAxis> <RYAxis> <Label>% packet loss</Label> <ManualScale>Both</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>102</ScaleMax> <AxisColor>&H000000FF&</AxisColor> <Format>||%</Format> </RYAxis> <YAxis> <Label/> <ManualScale>Min</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>50</ScaleMax> <AxisColor/> <Format>| ,| bytes</Format> </YAxis> </Axises> <PlotStyles> <Line/> <Bar/> <Spline/> <Step/> <Ribbon/> <Points/> <PointsPlusLine/> <PointsPlusSpine/> <BestFitCurve/> <BestFitLine/> <BestFitLineII/> <BestFitCurveII/> <Area/> </PlotStyles> <Subsets> <RecvBytes> <Name>Bytes Received</Name> <Field>In_TotalBytes</Field> <Color>&H00FF8080&</Color> <PointStyle>2</PointStyle> <LineStyle>Thin</LineStyle> <SubsetType>Total</SubsetType> <Direction>Receive</Direction> </RecvBytes> <XmitBytes> <Name>Bytes Transmited</Name> <Field>Out_TotalBytes</Field> <Color>&H00008000&</Color> <PointStyle>7</PointStyle> <LineStyle>Thin</LineStyle> <SubsetType>Total</SubsetType> <Direction>Transmit</Direction> </XmitBytes> </Subsets> </YahooTotalBytes> <YahooTotalBytesCombined> <ID>YahooTotalBytesCombined</ID> <Poller>Summary</Poller> <Name>Yahoo - Total Bytes Transfered (Xmit+Recv) over Internet Connections</Name> <Title>Total Bytes Transfered (Xmit+Recv) over Internet Connections</Title> <SubTitle>Traffic on Internet Interfaces ${SampleSize}</SubTitle> <SubTitle2>${Period}</SubTitle2> <SQL>SELECT Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0) As DateTime, Sum([In_TotalBytes]+[Out_TotalBytes]) AS TotalBytesFROM (InterfaceTraffic INNER JOIN Nodes ON InterfaceTraffic.NodeID = Nodes.NodeID) INNER JOIN Interfaces ON InterfaceTraffic.InterfaceID = Interfaces.InterfaceID Where DateTime >= ${PeriodBegin} And DateTime <= ${PeriodEnd} And Interfaces.Service='Internet'GROUP BY Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0)Order By DateTime</SQL> <Where>Interfaces.Service='Internet'</Where> <PlotStyle>Bar</PlotStyle> <BarWidth>.75</BarWidth> <ComparisonPlotStyle>Line</ComparisonPlotStyle> <Units>bytes</Units> <ComparisonSubsets>0</ComparisonSubsets> <RAxisSubsets>0</RAxisSubsets> <DataTable>InterfaceTraffic</DataTable> <Rescaleable>Yes</Rescaleable> <Icon>MinMaxAverage2</Icon> <Axises> <XAxis> <Label/> </XAxis> <RYAxis> <Label>% packet loss</Label> <ManualScale>Both</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>102</ScaleMax> <AxisColor>&H000000FF&</AxisColor> <Format>||%</Format> </RYAxis> <YAxis> <Label/> <ManualScale>Min</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>50</ScaleMax> <AxisColor/> <Format>| ,| bytes</Format> </YAxis> </Axises> <PlotStyles> <Line/> <Bar/> <Spline/> <Step/> <Ribbon/> <Points/> <PointsPlusLine/> <PointsPlusSpine/> <BestFitCurve/> <BestFitLine/> <BestFitLineII/> <BestFitCurveII/> <Area/> </PlotStyles> <Subsets> <TotalBytes> <Name>Total Bytes</Name> <Field>TotalBytes</Field> <Color>&HFF0000&</Color> <PointStyle>2</PointStyle> <LineStyle>Medium</LineStyle> <SubsetType>Total</SubsetType> <Direction>Receive</Direction> </TotalBytes> </Subsets> </YahooTotalBytesCombined></Charts>
<!--Yahoo custom Internet charts--><!--Copyright 2004 SolarWinds.Net All rights reserved--><!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by () --><Charts> <YahooPercentUtilization> <ID>YahooAvgUtil</ID> <Poller>Summary</Poller> <Name>Yahoo - Network Wide Percent Utilization</Name> <SQL>SELECT Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0) As DateTime, Avg([In_Averagebps]/[inBandwidth]*100) AS InPercentUtil, Avg([Out_Averagebps]/[OutBandwidth]*100) AS OutPercentUtilFROM (InterfaceTraffic INNER JOIN Nodes ON InterfaceTraffic.NodeID = Nodes.NodeID) INNER JOIN Interfaces ON InterfaceTraffic.InterfaceID = Interfaces.InterfaceID WHERE (Interfaces.InBandwidth>0) AND (Interfaces.OutBandwidth>0) AND Interfaces.Service='Internet'And DateTime >= ${PeriodBegin} And DateTime <= ${PeriodEnd}GROUP BY Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0)Order By DateTime</SQL> <Where>Interfaces.Service='Internet'</Where> <Title>Internet Percent Utilization</Title> <SubTitle>Percent Utilization on Internet Interfaces</SubTitle> <SubTitle2>${Period}</SubTitle2> <PlotStyle>Bar</PlotStyle> <Units>%</Units> <ComparisonSubsets>0</ComparisonSubsets> <RAxisSubsets>0</RAxisSubsets> <DataTable>InterfaceTraffic</DataTable> <Rescaleable>No</Rescaleable> <Icon>Step</Icon> <Axises> <XAxis> <Label/> </XAxis> <RYAxis> <Label>% packet loss</Label> <ManualScale>Both</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>102</ScaleMax> <AxisColor>&H000000FF&</AxisColor> <Format>||%</Format> </RYAxis> <YAxis> <Label/> <ManualScale>Both</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>100</ScaleMax> <AxisColor/> <Format>| ,| %</Format> </YAxis> </Axises> <PlotStyles> <Line/> <Bar/> <Spline/> <Step/> <Ribbon/> <Points/> <PointsPlusLine/> <PointsPlusSpine/> <BestFitCurve/> <BestFitLine/> <Area/> </PlotStyles> <Subsets> <InPercentUtil> <Name>Receive Utilization</Name> <Field>InPercentUtil</Field> <Color>&H00FF8080&</Color> <PointStyle>2</PointStyle> <LineStyle>Medium</LineStyle> <SubsetType>Avg</SubsetType> <Direction>Receive</Direction> </InPercentUtil> <OutPercentUtil> <Name>Transmit Utilization</Name> <Field>OutPercentUtil</Field> <Color>&H00008000&</Color> <PointStyle>7</PointStyle> <LineStyle>Medium</LineStyle> <SubsetType>Avg</SubsetType> <Direction>Transmit</Direction> </OutPercentUtil> </Subsets> </YahooPercentUtilization> <YahooTotalXmitBytes> <ID>YahooTotalXmitBytes</ID> <Poller>Summary</Poller> <Name>Yahoo - Total Bytes Transmitted over Internet Connections</Name> <Title>Total Bytes Transmitted over Internet Connections</Title> <SubTitle>Traffic on Internet Interfaces ${SampleSize}</SubTitle> <SubTitle2>${Period}</SubTitle2> <SQL>SELECT Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0) As DateTime, Sum([Out_TotalBytes]) AS TotalBytesFROM (InterfaceTraffic INNER JOIN Nodes ON InterfaceTraffic.NodeID = Nodes.NodeID) INNER JOIN Interfaces ON InterfaceTraffic.InterfaceID = Interfaces.InterfaceID Where DateTime >= ${PeriodBegin} And DateTime <= ${PeriodEnd} And Interfaces.Service='Internet'GROUP BY Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0)Order By DateTime</SQL> <Where>Interfaces.Service='Internet'</Where> <PlotStyle>Bar</PlotStyle> <BarWidth>.75</BarWidth> <ComparisonPlotStyle>Line</ComparisonPlotStyle> <Units>bytes</Units> <ComparisonSubsets>0</ComparisonSubsets> <RAxisSubsets>0</RAxisSubsets> <DataTable>InterfaceTraffic</DataTable> <Rescaleable>Yes</Rescaleable> <Icon>MinMaxAverage2</Icon> <Axises> <XAxis> <Label/> </XAxis> <RYAxis> <Label>% packet loss</Label> <ManualScale>Both</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>102</ScaleMax> <AxisColor>&H000000FF&</AxisColor> <Format>||%</Format> </RYAxis> <YAxis> <Label/> <ManualScale>Min</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>50</ScaleMax> <AxisColor/> <Format>| ,| bytes</Format> </YAxis> </Axises> <PlotStyles> <Line/> <Bar/> <Spline/> <Step/> <Ribbon/> <Points/> <PointsPlusLine/> <PointsPlusSpine/> <BestFitCurve/> <BestFitLine/> <BestFitLineII/> <BestFitCurveII/> <Area/> </PlotStyles> <Subsets> <TotalBytes> <Name>Total Bytes</Name> <Field>TotalBytes</Field> <Color>&H00008000&</Color> <PointStyle>2</PointStyle> <LineStyle>Medium</LineStyle> <SubsetType>Total</SubsetType> <Direction>Transmit</Direction> </TotalBytes> </Subsets> </YahooTotalXmitBytes> <YahooTotalRecvBytes> <ID>YahooTotalRecvBytes</ID> <Poller>Summary</Poller> <Name>Yahoo - Total Bytes Received over Internet Connections</Name> <Title>Total Bytes Received over Internet Connections</Title> <SubTitle>Traffic on Internet Interfaces ${SampleSize}</SubTitle> <SubTitle2>${Period}</SubTitle2> <SQL>SELECT Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0) As DateTime, Sum([In_TotalBytes]) AS TotalBytesFROM (InterfaceTraffic INNER JOIN Nodes ON InterfaceTraffic.NodeID = Nodes.NodeID) INNER JOIN Interfaces ON InterfaceTraffic.InterfaceID = Interfaces.InterfaceID Where DateTime >= ${PeriodBegin} And DateTime <= ${PeriodEnd} And Interfaces.Service='Internet'GROUP BY Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0)Order By DateTime</SQL> <Where>Interfaces.Service='Internet'</Where> <PlotStyle>Bar</PlotStyle> <BarWidth>.75</BarWidth> <ComparisonPlotStyle>Line</ComparisonPlotStyle> <Units>bytes</Units> <ComparisonSubsets>0</ComparisonSubsets> <RAxisSubsets>0</RAxisSubsets> <DataTable>InterfaceTraffic</DataTable> <Rescaleable>Yes</Rescaleable> <Icon>MinMaxAverage2</Icon> <Axises> <XAxis> <Label/> </XAxis> <RYAxis> <Label>% packet loss</Label> <ManualScale>Both</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>102</ScaleMax> <AxisColor>&H000000FF&</AxisColor> <Format>||%</Format> </RYAxis> <YAxis> <Label/> <ManualScale>Min</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>50</ScaleMax> <AxisColor/> <Format>| ,| bytes</Format> </YAxis> </Axises> <PlotStyles> <Line/> <Bar/> <Spline/> <Step/> <Ribbon/> <Points/> <PointsPlusLine/> <PointsPlusSpine/> <BestFitCurve/> <BestFitLine/> <BestFitLineII/> <BestFitCurveII/> <Area/> </PlotStyles> <Subsets> <TotalBytes> <Name>Total Bytes</Name> <Field>TotalBytes</Field> <Color>&H00FF8080&</Color> <PointStyle>2</PointStyle> <LineStyle>Medium</LineStyle> <SubsetType>Total</SubsetType> <Direction>Receive</Direction> </TotalBytes> </Subsets> </YahooTotalRecvBytes> <YahooTotalBytes> <ID>YahooTotalBytes</ID> <Poller>Summary</Poller> <Name>Yahoo - Total Bytes Transfered over Internet Connections</Name> <Title>Total Bytes Transfered over Internet Connections</Title> <SubTitle>Traffic on Internet Interfaces ${SampleSize}</SubTitle> <SubTitle2>${Period}</SubTitle2> <SQL>SELECT Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0) As DateTime, Sum([Out_TotalBytes]) AS Out_TotalBytes,Sum([In_TotalBytes]) AS In_TotalBytesFROM (InterfaceTraffic INNER JOIN Nodes ON InterfaceTraffic.NodeID = Nodes.NodeID) INNER JOIN Interfaces ON InterfaceTraffic.InterfaceID = Interfaces.InterfaceID Where DateTime >= ${PeriodBegin} And DateTime <= ${PeriodEnd} And Interfaces.Service='Internet'GROUP BY Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0)Order By DateTime</SQL> <Where>Interfaces.Service='Internet'</Where> <PlotStyle>Step</PlotStyle> <BarWidth>.75</BarWidth> <ComparisonPlotStyle>Step</ComparisonPlotStyle> <Units>bytes</Units> <ComparisonSubsets>0</ComparisonSubsets> <RAxisSubsets>0</RAxisSubsets> <DataTable>InterfaceTraffic</DataTable> <Rescaleable>Yes</Rescaleable> <Icon>MinMaxAverage2</Icon> <Axises> <XAxis> <Label/> </XAxis> <RYAxis> <Label>% packet loss</Label> <ManualScale>Both</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>102</ScaleMax> <AxisColor>&H000000FF&</AxisColor> <Format>||%</Format> </RYAxis> <YAxis> <Label/> <ManualScale>Min</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>50</ScaleMax> <AxisColor/> <Format>| ,| bytes</Format> </YAxis> </Axises> <PlotStyles> <Line/> <Bar/> <Spline/> <Step/> <Ribbon/> <Points/> <PointsPlusLine/> <PointsPlusSpine/> <BestFitCurve/> <BestFitLine/> <BestFitLineII/> <BestFitCurveII/> <Area/> </PlotStyles> <Subsets> <RecvBytes> <Name>Bytes Received</Name> <Field>In_TotalBytes</Field> <Color>&H00FF8080&</Color> <PointStyle>2</PointStyle> <LineStyle>Thin</LineStyle> <SubsetType>Total</SubsetType> <Direction>Receive</Direction> </RecvBytes> <XmitBytes> <Name>Bytes Transmited</Name> <Field>Out_TotalBytes</Field> <Color>&H00008000&</Color> <PointStyle>7</PointStyle> <LineStyle>Thin</LineStyle> <SubsetType>Total</SubsetType> <Direction>Transmit</Direction> </XmitBytes> </Subsets> </YahooTotalBytes> <YahooTotalBytesCombined> <ID>YahooTotalBytesCombined</ID> <Poller>Summary</Poller> <Name>Yahoo - Total Bytes Transfered (Xmit+Recv) over Internet Connections</Name> <Title>Total Bytes Transfered (Xmit+Recv) over Internet Connections</Title> <SubTitle>Traffic on Internet Interfaces ${SampleSize}</SubTitle> <SubTitle2>${Period}</SubTitle2> <SQL>SELECT Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0) As DateTime, Sum([In_TotalBytes]+[Out_TotalBytes]) AS TotalBytesFROM (InterfaceTraffic INNER JOIN Nodes ON InterfaceTraffic.NodeID = Nodes.NodeID) INNER JOIN Interfaces ON InterfaceTraffic.InterfaceID = Interfaces.InterfaceID Where DateTime >= ${PeriodBegin} And DateTime <= ${PeriodEnd} And Interfaces.Service='Internet'GROUP BY Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0)Order By DateTime</SQL> <Where>Interfaces.Service='Internet'</Where> <PlotStyle>Bar</PlotStyle> <BarWidth>.75</BarWidth> <ComparisonPlotStyle>Line</ComparisonPlotStyle> <Units>bytes</Units> <ComparisonSubsets>0</ComparisonSubsets> <RAxisSubsets>0</RAxisSubsets> <DataTable>InterfaceTraffic</DataTable> <Rescaleable>Yes</Rescaleable> <Icon>MinMaxAverage2</Icon> <Axises> <XAxis> <Label/> </XAxis> <RYAxis> <Label>% packet loss</Label> <ManualScale>Both</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>102</ScaleMax> <AxisColor>&H000000FF&</AxisColor> <Format>||%</Format> </RYAxis> <YAxis> <Label/> <ManualScale>Min</ManualScale> <ScaleMin>0</ScaleMin> <ScaleMax>50</ScaleMax> <AxisColor/> <Format>| ,| bytes</Format> </YAxis> </Axises> <PlotStyles> <Line/> <Bar/> <Spline/> <Step/> <Ribbon/> <Points/> <PointsPlusLine/> <PointsPlusSpine/> <BestFitCurve/> <BestFitLine/> <BestFitLineII/> <BestFitCurveII/> <Area/> </PlotStyles> <Subsets> <TotalBytes> <Name>Total Bytes</Name> <Field>TotalBytes</Field> <Color>&HFF0000&</Color> <PointStyle>2</PointStyle> <LineStyle>Medium</LineStyle> <SubsetType>Total</SubsetType> <Direction>Receive</Direction> </TotalBytes> </Subsets> </YahooTotalBytesCombined></Charts>
SELECT Datetime, SUM(avginbps) as InPercentUtil, SUM(avgoutbps) as OutPercentUtil FROM ( SELECT Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0) As DateTime, avg([IN_Maxbps])/1000000 as avginbps, avg([OUT_Maxbps])/1000000 as avgoutbps, interfaces.interfaceid as interfaceid, interfaces.outbandwidth as bandwidth FROM InterfaceTraffic INNER JOIN Interfaces ON InterfaceTraffic.InterfaceID = Interfaces.InterfaceID WHERE Interfaces.interfaceid in (826,895,1407,2078,1310,473) And interfaces.adminstatus * interfaces.OperStatus = 1 And interfaces.operational = 1 And DateTime >= ${PeriodBegin} And DateTime <= ${PeriodEnd} GROUP BY Convert(DateTime,Floor(Cast(DateTime as Float)/${SampleSize}*1440)*${SampleSize}/1440,0), interfaces.interfaceid, interfaces.outbandwidth ) as avg_table INNER JOIN Interfaces ON Interfaces.Interfaceid = avg_table.interfaceid GROUP BY Datetime