DX Application Performance Management

 View Only
  • 1.  Native window service via ca apm

    Posted Jun 06, 2019 12:30 PM
    Hi Team,

    I am not sure on this "can we monitor native window service running as .exe process via ca apm .Net agent"





    Regards
    Amit Singh Bisht

    ------------------------------
    Technical Consultant
    UPS
    ------------------------------


  • 2.  RE: Native window service via ca apm

    Broadcom Employee
    Posted Jun 07, 2019 05:58 AM
    Hi Amit,

    you can monitor a native windows service if it is a .NET application.

    You can either add the name of the .exe to introscope.agent.dotnet.monitorApplications=w3wp.exe,aspnet_wp.exe,dllhost.exe,my_windows_service.exe or comment out the property to monitor all .NET applications on the server. See https://docops.ca.com/ca-apm/10-7/en/implementing-agents/microsoft-net-agent/properties-reference-net-agent for more details.

    Your service exe should show up as new agent in your webview.

    You might not get much visibility into the service because what we are monitoring is geared towards web applications. You can add custom instrumentation for your service like this:

    1. Create dummysample.pbd to instrument all the classes and methods.
      SetFlag: CustomTracer TurnOn: CustomTracer
      IdentifyMatchingClassesAs: [DummyWinApp]* CustomTracer
      IdentifyMatchingClassesAs: [TestLeak]* CustomTracer
      TraceAllMethodsIfFlagged: CustomTracer BlamePointTracer "Custom|{classname}|{method}"
      TraceAllMethodsIfFlagged: CustomTracer BlamePointTracer "Custom|{classname}|{method}"
    2. Add the dummysample.pbd to the IntoscopeAgent.profile:
      introscope.autoprobe.directivesFile=default-typical.pbl,hotdeploy,dummysample.pbd
    3. Restart the service/application.
    For more info on custom instrumentation see https://docops.ca.com/ca-apm/10-7/en/implementing-agents/microsoft-net-agent/advanced-net-instrumentation and https://community.broadcom.com/enterprisesoftware/viewdocument/instrumentation-best-practices



  • 3.  RE: Native window service via ca apm

    Posted Jun 07, 2019 08:25 AM
    Hi Guenter,

    Appreciate your response.

    It a vendor(Microsoft) application being used by the customer.

    IInternet Authentication Service(network proxy server).

    I tried to find out about Internet Authentication Service but I didn't find much helpful.

    Will .Net agent work for this ??

    Regards
    Amit


    ------------------------------
    Technical Consultant
    UPS
    ------------------------------



  • 4.  RE: Native window service via ca apm

    Posted Jun 07, 2019 08:25 AM
    Edited by Amit Singh Bisht Jun 07, 2019 08:31 AM


  • 5.  RE: Native window service via ca apm

    Posted Jun 07, 2019 08:25 AM
    Edited by Amit Singh Bisht Jun 07, 2019 08:28 AM


  • 6.  RE: Native window service via ca apm

    Posted Jun 07, 2019 02:31 PM
    Hi Amit,

    The Microsoft Network Policy Server is an implementation of a RADIUS server 
    https://docs.microsoft.com/en-us/windows/desktop/nps/portal

    From what it reads like, it has a developer API for C/C++.  I found nothing as far if it is running within a .NET  context and without an application server context the .NET agent more than likely won't be able to attach to the program and listen into it's performance metrics.

    Depends on how badly you want to try to monitor the metrics within the NPS, but one idea is to write an adapter C/C++ program that will query the NPS context and push that, in the form of an XML to an environment performance agent (epagent) context to then be published over to APM.

    You could also write up some batch scripts to query for the NPS hosting system stats such as netstat that might be useful.

    Another possibility is to configure NPS to log to a log file then use an elastic search engine (ELK) or I think CA APM has a log parser to capture and parse the logs.
    https://docs.microsoft.com/en-us/windows-server/networking/technologies/nps/nps-best-practices
     

    Hope this helps,

    Billy


  • 7.  RE: Native window service via ca apm

    Posted Jun 10, 2019 07:04 AM
    Hi Bill,

    Appreciate your response.

    As per your reply, there is no possible way to monitor it directly via the APM agent.
    Custom instrumentation is required, in the form of an adapter that will pull the data and report back to EP agent and then to EM.

    Regards
    Amit

    ------------------------------
    Technical Consultant
    UPS
    ------------------------------



  • 8.  RE: Native window service via ca apm

    Broadcom Employee
    Posted Jul 25, 2019 10:05 AM
    C++ applications can be monitored using our Infrastructure Agent.
    Please reach out to your CSA for details.

    ------------------------------
    Custom Solution Architect
    Broadcom
    ------------------------------



  • 9.  RE: Native window service via ca apm

    Posted Jun 10, 2019 07:05 AM
    Edited by Amit Singh Bisht Jun 10, 2019 08:22 AM