Log file Monitoring with the FREE NiCE Management Pack

Standard

In this blogpost I am going to take you true the steps I took to install and configure the Nice Log File Management Pack. You can download the management pack from here and the best thing is that is for FREE!!

NiCE Log File Monitoring

Scenario:

I have an device which generates a log file entry when a registration is received. The registration is processed by an application. I going measure the performance of the application by calculating the time between registration and the processing the information in the application.

  1. Install the Management Pack
  2. Import the Management Pack
  3. PowerShell script to calculate the time between registration and processing
  4. Create a Management Pack.
  5. Create a performance rule using the NiCE Management Pack
  6. Create a performance view

1. Install the Management Pack

  1. Run the "NiCE_LogfileMP_0130.msi"
  2. In the "NiCE Log File MP – InstallShield Wizard" on the "Welcome to the InstallShield Wizard for NiCE Log File MP" page, click "Next"
    NiCE Log File MP - InstallShield Wizard
  3. In the “NiCE Log File MP – InstallShield Wizard” on the “License Agreement” page, check “I accept the terms and in the license agreement” and click “Next
    NiCE Log File MP - InstallShield Wizard
  4. In the “NiCE Log File MP – InstallShield Wizard” on the “Destination Folder” page, click “Next
    NiCE Log File MP - InstallShield Wizard
  5. In the “NiCE Log File MP – InstallShield Wizard”, on the “InstallShield Wizard Completed” page, click “Finish
    NiCE Log File MP - InstallShield Wizard

2. Import the Management Pack

  1. Start the "Operations Manager Console"
  2. In the “Operations Manager Console” click “Administration
  3. Right click “Management Packs”, and the click “Import Management Packs
    Management Packs
  4. The “Import Management pack wizard” opens. Click “Add”, and the click “Add from Disk
    Import Management Packs
  5. The Select Management Packs to import dialog box appears. If necessary, change to the directory that holds your management pack file. Click one or more management packs to import from that directory, and then click Open.
    Select Managemetn Packs to Import
  6. In the “Import Management Pack” wizard, Click “Install
  7. In the “Import Management Pack” wizard, Click “Close

3. PowerShell script to calculate the time between registration and processing

I’ve create the following PowerShell script:

The new created log file looks like this

Powershell Script Result

4. Create a Management Pack

  1. Start the “Operations Manager Console
  2. In the "Administration" Workspace, in the Navigation pane, right click "Management Pack" and click "Create Management Pack"

    Create Management Pack

  3. In the “Create a Management Pack” wizard, on the “General properties” page, give the management pack a name and click “Next
  4. In the “Create a Management Pack” wizard, on the “Knowledge Article” page, click “Create

5. Create a Performance Rule Using NiCE Management Pack

  1. Start the “Operations Manager Console
  2. In the “Authoring” Workspace, in the navigation pane, right click “Rules” and select “Create a new Rule

    Create Performance Rule

  3. In the “Create Rule Wizard”, on the “Rule Type” page, expand “NiCE Log Files”, expand “Performance Rules”, expand “Advanced”, expand “Expression filtered” and then click “Performance Rules (Advanced)

    Create Perfomance Rule

  4. In the “Create Rule Wizard”, on the “Rule Type” page, select the Management pack created in step 4
  5. In the “Create Rule Wizard”, on the “Rule Type” page, Click “Next
  6. In the “Create Rule Wizard”, on the “General” page, In the “Rule name” page enter a “Name”, In the “Rule Category” select “Performance Collection”. Next to “Rule Target” click “Select” and the select the target “Windows Server 2012 R2 Computer”, click “Next

    Create Performance Rule

  7. In the “Create Rule Wizard” on the “Pre-processing Settings” page, click “Next

  8. In the “Create Rule Wizard” on the “Log file Source Settings” page, In the “Log file Path” enter the locations off the log file, In the “Log file Name” click enter the log file name you want to monitor and click “Next

    Create Performance Rule

  9. In the “Create Rule Wizard” on the “Regular Expression Settings (Optional)”, start the “Regex Testing tool
  10. In the “Regex Testing Tool” in the “Log file Line” enter a line of the log file and create a Regex. Mine looked something like this:

    CreatePerformanceRule5

  11. In the “Regex Testing Tool” click “OK
  12. In the “Create Rule Wizard” on the “Regular Expression Settings (Optional)” page, click “Next

    Create Performance Rule

  13. In the “Create Rule Wizard” on the “Performance Mapper” page, In the “Object” field enter “$Target/Property[Type="MicrosoftWindowsLibrary7585010!Microsoft.Windows.Computer"]/HostServerName$”, In the ”Counter” field enter “Time”, In the “Instance” field enter “Val”, In the “Value” field enter “$Date/RegexMatch/Val$

    Create Perfomance Rule

  14. In the “Create Rule Wizard” on the “Performance Mapper” page click “Create

6. Create Performance View

  1. Start the “Operations Manager Console
  2. In the  “Operations Console”, select “Monitoring” and expand the management pack that you created.
  3. Right click “Management Pack” and click “New” and click “Performance View

    Create Performance View

  4. On the “Properties Name” page, Enter a “Name” check “Collected by Specific rules” and in the Criteria description select the above created “Performance Rule” It should look something like this:

    Create Performance View

  5. The result should look something like this:

    Create Performance View

This Management Pack will provide capabilities which are missing in System Center Operations manager and the best part off it it’s free. I advice you to check there website and try there management pack.

I would like to thank Thando Chasakara and his support team for answering all the questions that I had when started working whit the management pack

One thought on “Log file Monitoring with the FREE NiCE Management Pack

Leave a Reply

Your email address will not be published. Required fields are marked *