Creating a Monitoring Policy

You can create a monitoring policy to track a specific type of logs in your environment.

Before You Begin

  • Collect the details required to create the policy. For more information, see Planning for Your Monitoring Policy.
  • If you plan to monitor the log data from the Log Monitoring dashboard, you must set up the Web Console and configure the Analytics engine before creating the monitoring policy. For more information, see Setting Up the Log Monitoring Dashboard.
  • Determine if you want to save the policy configuration in a script that you can run later from the command-line interface. This is useful if you want to save the monitoring policy configuration in case the policy is accidentally deleted.

Procedure

  1. From the CommCell Browser, expand Policies.
  2. Right-click Monitoring Policies and click New Monitoring Policy.

    The New Monitoring Policy wizard is displayed.

  3. Follow the instructions in the wizard.

    Note: If you plan to monitor the log data from the Log Monitoring dashboard, you must enable content indexing:

    1. On the Please specify criteria page, select Index all lines.
    2. On the Specify the data capturing options page, select the Analytics engine and decide if you plan to age the log data.
  4. On the Summary page, choose whether to save the configuration as a script for future use:
    • To create the policy immediately, click Finish.
    • To save the policy, complete the following steps:
      1. Click Save as Script.
      2. In the Save as Script dialog box, from the Client list, select the client computer where you want to save the script.
      3. In the File Path box, specify the location where you want to save the script.
      4. If the user who is logged into the CommCell Console does not have sufficient privileges to perform the save as script operation, click Use a different user account and enter the name and password of a user account with sufficient privileges.
      5. Click OK.

        The script is saved as an .xml file and .bat file on the client you selected. If a file with the same name exists in the specified location, the .xml file is created with a timestamp. The .bat file overwrites any existing .bat file.

        To create the policy, run the script from the command-line interface. For instructions, see Restoring a Monitoring Policy Using the Command Line.

  5. If you enabled content indexing on the policy, you might want to associate users with the policy so that they can monitor the policy from the Log Monitoring dashboard. For more information, see Setting Access Permissions to Monitoring Policies.

Related Topics