Jay_Nielson_410
Mar 16, 2012Nimbostratus
.Net Monitoring throughput Suggestions needed
I think I have the pertenant code below and the error message it generates is on .get_performance_graph_csv_statistics(Query). I have tried various valid performance graph name "memory", "CPU" and "throughput" and a few other permutations of code but I always get hung up with this error. I was starting by trying to pull raw data from the LBs to be stored on a web server. Any suggestions?
iControl.Interfaces interfaces = new iControl.Interfaces(); if (interfaces.initialize(selfip.ToString(), 443, "xxxxx", "xxxxxxx")) { iControl.SystemStatisticsPerformanceGraph[] graphInfo = interfaces.SystemStatistics.get_performance_graph_list(); for (int i = 0; i "); } iControl.SystemStatisticsPerformanceStatisticQuery[] Query = new iControl.SystemStatisticsPerformanceStatisticQuery[5]; Query[0] = new iControl.SystemStatisticsPerformanceStatisticQuery(); // <-- Added this to create the first object. Query[0].object_name = "memory"; Query[0].start_time = 0; Query[0].end_time = 0; Query[0].interval = 0; Query[0].maximum_rows = 0; interfaces.SystemStatistics.get_performance_graph_csv_statistics(Query); }
=======================
Server Error in '/bigiplb' Application.
--------------------------------------------------------------------------------
Could not find element by name: object_name
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.Services.Protocols.SoapHeaderException: Could not find element by name: object_name Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack
Trace: [SoapHeaderException: Could not find element by name: object_name] System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +431766 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +204 iControl.SystemStatistics.get_performance_graph_csv_statistics(SystemStatisticsPerformanceStatisticQuery[] objects) +107 icontrol_1.Throughput.Button1_Click(Object sender, EventArgs e) in D:\Documents and Settings\jay.nielson\My Documents\Visual Studio 2005\Projects\icontrol_1\icontrol_1\Throughput.aspx.cs:79 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634