Walkthrough: Statistics Manager Installation

Introduction

Statistics Manager is a recently-delivered tool from Microsoft for viewing real-time Key Health Indicator statistics for your Lync or Skype for Business deployment.  It’s useful for getting a real-time snapshot of the performance of a given pool, role, server or site and is customizable to display the information you’re most interested in.  For more information, please see the planning documentation and the deployment documentation.  For more information on KHIs, take a look at the Network Planning, Monitoring, and Troubleshooting documentation located here and download the KHI Analysis tool and associated guide here.

Note: I’ve installed the software on a VM called SQL02; SQL Server is not required for this installation and this machine was selected purely due to resource limitations in my lab environment.

Install the Statistics Manager Certificate

  1. Create the following INF file:[Version]
    Signature=”$Windows NT$”[NewRequest]
    Subject = “CN=<ServerFQDN>.contoso.local”
    Exportable = FALSE
    FriendlyName = “Statistics Manager Certificate”
    KeyLength = 2048
    KeySpec = 1
    KeyUsage = 0xA0
    MachineKeySet = True
    ProviderName = “Microsoft RSA SChannel Cryptographic Provider”
    RequestType = PKCS10[RequestAttributes]
    CertificateTemplate=WebServer
  2. Where ServerFQDN is the FQDN of the server.
  3. Generate the certificate request, request and accept the certificate:

07-01

  1. Open the certificate in the Certificates MMC snap-in and note the thumbprint:

02

  1. Click OK.
  2. The ACL must be modified to allow the Network Service to access the certificates private key; to do so, right-click the certificate and select All Tasks > Manage Private Keys.
  3. At the Permissions prompt, click Add:

04

  1. Enter NETWORK SERVICE in the Enter the object names to select field and click Check Names:

05

  1. Click OK.  The Network Service account should be granted permissions as follows:

06

  1. Click OK to complete the certificate installation.

Prepare the Listener host machine

Install Redis:

  1. Download the Redis MSI file here: https://github.com/MSOpenTech/redis/releases
  2. Launch the MSI using the default settings:
07
08
09
10
11
12
13
14
  1. Download the StatsManPerfAgent.msi, StatsManPerfAgentListener.msi and StatsManWebSite.msi here: http://www.microsoft.com/en-us/download/details.aspx?id=49491
  2. Start the installation of the Listener service by launching StatsManPerfAgentListener.msi:
15
16
  1. Enter a password for the Service Password that the remote agents will use to authenticate to the Listener service:
17
  1. The Service Port can be left at the default of 8443.
  2. Click Select… to choose the certificate created earlier:
18
  1. Click OK
19
  1. Modify the installation and data directories as required and click Install.
  2. Click Finish to complete the installation:
20
  1. Verify the installation by browsing to https://<ServerFQDN>:8443/healthcheck/; the following page should be displayed:
21

Install the Website

  1. Install the Website by launching the StatsManWebSite.msi:
22
  1. Accept the defaults (the port number can be changed later if required by using IIS manager binding):
24
  1. Click Install; the required Windows Features will be installed:
25
  1. A security group called StatsManWebSiteUsers is created; add users to this group to grant them access to the web site.
  2. Verify the installation by browsing to http://<ServerFQDN>:8080/healthcheck/; the following page should be displayed (you may be required to enter appropriate credentials):
27

Install the Agents

  1. Install the agent on each Front End server to be monitored by running StatsManPerfAgent.msi:
28
29
  1. Specify the Service Password (entered earlier), the Service URI and the Service Thumbprint from the certificate assigned to the Listener:
30

Note: If you copy the thumbprint directly from the certificate snap-in, non-printing characters will be present in the string and you will receive an error regarding the length of the thumbprint; to avoid this, save the string in a text file and then re-copy the string for pasting here.

  1. Click Install.
  2. Click Finish:
31

Import the topology

  1. The next step is to import the topology; to do so, run the following at a Lync Server/Skype for Business Management Shell:
Get-CsPool | Export-Clixml -Path <OutputFile>
Where OutputFile is the output filename, e.g.:
Get-CsPool | Export-Clixml -Path Topology.xml

32

  1. Copy the output file to the Listener server
  2. On the Listener server, run a PowerShell prompt and change directory to (by default):
C:\Program Files\Skype for Business Server StatsMan Listener

 

  1. Run the following:
.\Update-StatsManServerInfo.ps1 -CsPoolFile <OutputFile>
  1. Enter Y at the resulting prompt:
33
34

Using Statistics Manager

  1. Browse to https://<ServerFQDN>:8080 to view the Statistics Manager web site.
  2. If you attempt this too early, you may receive the following:

07-37

  1. If this is the case, wait a few minutes and re-attempt; you should now see something similar to this:

36

All done!

Leave a comment