I recently had the lovely experience of setting up the monitoring role for Lync 2010. In doing so, I documented the steps I took to successfully deploy the Monitoring Server Reports Services.
Before beginning, here are a few notes:
- Ensure you are using Microsoft SQL Server 2008 x64 Standard or greater (if you need to upgrade, see the following tutorial: SQL Server 2008 R2 – Updating a msSQL instance/server)
- You have deployed Lync 2010 Standard or Enterprise
- Both versions allow you to add this service
Alright, so lets begin!
- Our first step is to install the "Reporting Services" feature for SQL Server 2008
- Open up the Reporting Services Configuration Manager
- Enter the SQL Server Reporrting Services instance you want to connect to
- Click Web Service URL
- Enter the virtual directory name, port, and configure your SSL certificate
- Click Apply
- Note: If you had IIS on this box, you will need to choose different port numbers
- Open up Microsoft SQL Server Management Studio
- Login to your SQL server and create a new service account for your SQL server
- Make a sysadmin for the time being
- Head back over to the Reporting Services Configuration Manager
- Setup the Database Name and select the language.
- Leave Native Mode selected and click Next.
- Enter the same credentials on the Credentials step and click Next
- Click Next on the Summary pane
- Click Finish
- Go back to your SQL Server and deprivilege your account
- Uncheck sysadmin and Set the default database to ReportServer
- Click on the Report manager URL in the reporting Services Configuration Manager
- Click Reports if you are happy with the /Reports directory
- Once you have clicked Apply, verify you can view the website by clicking on the link it shows (it should bring you to a site that kind of reminds you of an old version of sharepoint :P)
- Go to your Lync Front End server and run the Lync Server Topology Builder program (Start->All Programs->Microsoft Lync Server 2010->Lync Server Topology Builder)
- Upon login, check "Download Topology from existing deployment" and click OK
- Save the topology to your desktop when prompted (or anywhere else, doesn't really matter)
- Expand your Site, and click on the Monitoring Servers folder
- Right click on Monitoring Servers and select New Monitoring Server...
- Enter in the server to install the role on
- Enter the SQL server name/instance to use
- Finish the installation
- Head over to the server where you are going to install the Monitoring/Archieving role
- Open up the Lync Server 2010 - Deployment Wizard (run as administrator)
- Click on Install or Update Lync Server System
- Click on Setup or Remove Lync Server Componenets
- Let it install/configure all of its stuff
- Click on Run next to Server Status (Optional)
- Verify Lync Server Call Detail Recording and Lync Server QoE Monitoring Service services have been started (start them if they aren't running)
- Go back to the Lync Server 2010 deployment wizard homepage and click on Deploy Monitoring Server Reports
- The server information should already be prefilled in. Click Next
- Enter in the SQL credentials needed to connect in
- For this step, I would recommend creating the account yourself (A good tutorial I came across on doing this can be found here, but I have summarized the steps below):
- Head over to Active Directory and create a new user
- Head over to the SQL Server
- Right click on Security->Logins and click New Login...
- Enter in your AD account you just created
- Click on User Mapping
- Check both the LcsCDR and QoEMetrics databases
- Click OK
- Do the following for both the LcsCDR and QoEMetrics databases
- Expand the database, expand Security, export Users
- Right click on the user you mapped to the database and click Properties
- Check ReportsReadOnlyRole and click OK
- Do the following for both the LcsCDR and QoEMetrics databases
- For this step, I would recommend creating the account yourself (A good tutorial I came across on doing this can be found here, but I have summarized the steps below):
- Enter in the User Group you want access to run reports.
- This group is a list of users who have access to actually run the reports/will point and click on reports.
- Click Next, you should notice the following info when it starts configuring, that is normal:
- The following URL will be used for deployment: https://myserver.mydomain:443/ReportServer SQL Server logon credentials for "mydomain\myuser" already exist. Use the existing logon credentials. "[QoEMetrics]" role "[ReportsReadOnlyRole]" has already assigned to "mydomain\myuser". "[LcsCDR]" role "[ReportsReadOnlyRole]" has already assigned to "mydomain\myuser".
- Click Finish (Assuming all went OK) 🙂
- Head over to your Lync admin panel (web GUI)
- Click on Monitoring and Archiving
- Select Global and click on Action and select Enable CDR
- You can change any other settings in here to your preference at this point.
- Head over to your reports page. https://yourdomain/ReportServer
- Click on LyncServerReports
- Click on Reports Home Page
If you see the Monitoring Server Reports page with the Lync 2010 logo in the top left corner, get up, celebrate, and pat yourself on the back! 🙂
Other thoughts: The first time I deployed this, I ran into a ton of errors. I have documented many of these issues and other issues that you might run into during your deployment. Hopefully you don't run into any, but if you do, hopefully they help you get up-and-going again.
Lync 2010 – Publishing the topology error: Missing Machine
Lync 2010 – Cannot impersonate user for data source ‘CDRDB’. (rsErrorImpersonatingUser) error