Hi, Thanks for adding a ticket (#320) to zenoss-3000 for native collection of WMI performance counter data.
I am using some WMI code in ASP.net to collect and display Exchange performance counter data using WMI, and thought it might help with development. Depending on the difficulty and other priorities, is there any chance of a two stage implementation of collecting performance counter data, with stage one coming earlier? Stage one could be a manual entering of the desired "Performance Object", "Counter", and "Instance" in ZenWin. This could use the ".NextValue()" method of the WMI "PerformanceCounter" object to collect the data as a text value. This could then be read and plotted on a graph from within Zenoss. Not sure how difficult this is to add to the product, but even being able to add counters manually would be a great addition to Zenoss functionality. It would also allow collection of CPU usage and other data using WMI, without having to install SNMP Informant (which works well but is limited to certain values). Stage two could possibly take this further by reading all the WMI performance counter objects and having some kind of drop down selection to pick the desired counter, etc. Eg. http://www.aspheute.com/english/20000809.asp Thanks, Richard This is some sample code to demonstrate the PerformanceCounter object: <%-- Begin --%> <%@ Import Namespace = System.Diagnostics %> <script runat="server"> Sub Page_Load(sender as Object, e as EventArgs) Dim perfMSExchangeISUserCount as New PerformanceCounter("MSExchangeIS", "User Count") Dim perfOWACurrentConnections as New PerformanceCounter("MSExchange Web Mail", "Authentications (in cache)", "_Total") Dim perfSMTPServerLocalQueueLength as New PerformanceCounter("SMTP Server", "Local Queue Length", "_Total") Dim perfMSExchangeMTAWorkQueueLength as New PerformanceCounter("MSExchangeMTA", "Work Queue Length") lblMSExchangeISUserCount.Text = perfMSExchangeISUserCount.NextValue() lblOWACurrentConnections.Text = perfOWACurrentConnections.NextValue() lblSMTPServerLocalQueueLength.Text = perfSMTPServerLocalQueueLength.NextValue() lblMSExchangeMTAWorkQueueLength.Text = perfMSExchangeMTAWorkQueueLength.NextValue() End Sub </script> <html> <head> <meta http-equiv="refresh" content="60"/> </head> <body> <form runat="server"> <table border="0"> <tr><td colspan="2"><strong>Exchange Performance Monitoring</strong></td></tr> <tr><td colspan="2"></td></tr> <tr><td>Current Logged On Users: </td><td><asp:Label id="lblMSExchangeISUserCount" runat="server"></asp:Label></td></tr> <tr><td>Current OWA Connections: </td><td><asp:Label id="lblOWACurrentConnections" runat="server"></asp:Label></td></tr> <tr><td>SMTP Server Local Queue Length: </td><td><asp:Label id="lblSMTPServerLocalQueueLength" runat="server"></asp:Label></td></tr> <tr><td>Total Exchange Queue Length: </td><td><asp:Label id="lblMSExchangeMTAWorkQueueLength" runat="server"></asp:Label></td></tr> </table> </form> </body> </html> <%-- End --%> ***** Learn 4 Real ****** Experience education outside the classroom with YHA's wide range of National Curriculum-linked packages. Prices start from as little as £29.50 for a two-day, all-inclusive residential. For more information or to request an education pack visit www.learn4real.co.uk or telephone 0870 770 8868. ------------------------------------------------------------------------------------------ This email is confidential and may be read, copied and used only by the addressee. If you have received it in error, please contact me immediately. This email has been checked for the presence of computer viruses by Sophos AntiVirus. However, the recipient should also check this email and any attachments for viruses. YHA accepts no responsibility for any damage caused by a virus transmitted in this email. ------------------------------------------------------------------------------------------ _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
