Defining monitor policies
Policy precedence
Policy precedence is the priority for policy execution. It ranges from 0 to 999. A lower number indicates a higher priority. Policy precedence controls the configuration applied to the PATROL Agents and servers when conflicting or overlapping configurations are defined between two or more monitor policies.
If two policies attempt to manage the same variable, such as /AgentSetup/historyRetentionPeriod, the PATROL Agent resolves the conflict by evaluating the precedence of the involved policies. Consider the following examples:
BMC recommends that you define a precedence numbering system. This can help you group related monitor policies to the numeric ranges of the precedence numbers.
See the following table for some suggestions:
File-based monitoring
When you configure a monitor policy, you can upload configuration files for Agents that support file-based monitoring, where configuration files store all the required information for monitoring, such as the remote host name. You do not have to upload the configuration files manually on each Agent that supports file-based monitoring. You can add a single or multiple configuration files for an Agent while creating the monitor policy.
Scenario
Sarah is an administrator at Apex Global. She uploads configuration files on PATROL Agents so that the knowledge modules (KMs) or monitoring solutions can collect data based on the inputs in the files. Sarah is looking for an alternative to manually uploading the files because of the following challenges:
- Sarah needs to log in to each PATROL Agent while she uploads the file. She does not always have access to each PATROL Agent every time and needs to rely on other administrators to complete her work.
- She needs to configure the monitoring separately for every file that she uploads.
Can Sarah find a solution to both these challenges?
Yes!
Sarah can now upload configuration files while she creates or edits a monitor policy in BMC Helix Operations Management. She can include multiple configuration files in the same policy.
On the Configuration > Monitor Policies page, the following monitor policies are available out-of-the-box:
- Predefined policy for Linux
- Predefined policy for Windows
- Policy for rotated API key push
To create a monitor policy
On the Configuration > Monitor Policies page, click Create, and follow these steps:
On the Create Monitoring Policy page, add a unique name and description for the monitor policy.
BMC recommends that you organize policies according to the precedence numbers when creating and editing policies. You can also include policy-specific information in the policy names. For more information, see Policy precedence.- Add the associated user group for the policy.
An associated user group is the user group that the logged-on user belongs to. If the user belongs to multiple user groups, select the appropriate user group for the policy. If you want to share the policy with the user group that you selected, select the Share with User Group checkbox.
Add a unique precedence number to the policy.
You can add a custom value in this field, or use the arrows to increase or decrease the value.If you want to enable the policy immediately, select Enable Policy . You can enable it later from the Monitor Policies page.
Create the PATROL Agent selection criteria based on which the policy must be applied to the Agents.
- Add other configurations in any or all of the following tabs by clicking them:
- Monitoring
- Deactivate Collection
- Polling Intervals
Configuration Variables
Configuring-and-maintaining-monitor-policy-configurations. For more information about these options, see
- Save the monitor policy.
To view monitor policies
View all monitor policies on the Configuration > Monitor Policies page.
If a PATROL Agent (responsible to monitor) is added to the authorization profile that you are a part of, you can view the policies created for the monitoring solution. You cannot view the policies if the PATROL Agent is removed from the authorization profile.
On the Monitor Policies page, you can view the following information:
- Predefined policies
You can view the following out-of-the-box policies:- Predefined policy for Linux
Policy for the basic monitoring of a Linux host. - Predefined policy for Windows
Policy for the basic monitoring of a Windows host. Policy for rotated API key push
Policy for pushing the rotated API key to PATROL Agents. This read-only policy is created when you choose to rotate the API key in BMC Helix Portal and is displayed under the Internal policy filter. For subsequent rotations, this policy stores the rotated (updated) API key in the /SecureStore/mca/tenant/apiKey configuration variable. The system also generates an Information event to provide notification about the key rotation. The rotated API key is used for data ingestion from PATROL Agents.
For instructions about creating an API key, see Using API keys for external integrations.
- Predefined policy for Linux
- Policy filters
Use the following tabs to view filtered policies:- Enabled: View all enabled policies
- Disabled: View all disabled policies
- Shared: View all the policies that are shared with other users
- Not shared: View all the policies that are not shared with any other users
- Internal: View all policies that are created as attribute filters. You can only view these policies and not take any action on them.
For more information on attribute filters, see Restricting-data-collection-for-monitor-attributes.
Click a policy name to see the View Monitoring Policy page. This page displays the general properties of the policy and the agent selection criteria that you used while creating the policy. It also shows other configurations that you made while creating the policy. If you have not configured a criterion, you can see the following message in the criterion area:
To enable or disable a policy
To enable a policy, select the Configuration > Monitor Policies page, click the action menu of a disabled policy, and click Enable.
To disable a policy, select the Configuration > Monitor Policies page, click the action menu of an enabled policy, and click Disable.
After enabling or disabling a policy, ensure that you wait for a few minutes before changing the status again.
After you disable a monitor policy, all entities that are associated with the PATROL Agent (device) are deleted from the Monitors tab on the Device Details page. Deleting this entity closes all associated alarm events on the Events page.
The reason for the alarm event closure is displayed on the Logs and Notes tab on the Event Details page of the alarm event. For more information, see Viewing-or-adding-notes-to-an-event .
To edit a policy
- On the Configuration > Monitor Policies page, click the action menu of the policy that you want to modify and select Edit .
- (Optional) For the KMs that support file-based monitoring, add or edit the configuration files by performing the following actions:
- In the Monitoring tab, for the monitoring solution that has file-based monitoring enabled, click the action menu and select Files.
- In the Add Configuration files dialog box, perform one of the following actions:
- To add a file, click Add and see Configuring-and-maintaining-monitor-policy-configurations for instructions about adding a configuration file.
- To delete a file, click the action menu of the file and click Delete.
- To download a file, click the action menu of the file and click Download.
Click Save.
- Make other updates to the policy and save the changes.
To copy a policy
Before copying the policy, ensure the following:
- The user that you plan to use in the new policy belongs to the associated user group in the original policy.
- The associated user group in the new policy can access the monitoring solutions and configurations of the original policy. Without this, the monitoring solutions and configurations will not be available in the new policy.
On the Configuration > Monitor Policies page, click the action menu of the policy that you want to copy and select Copy. The Create Policy page is displayed with the configurations of the copied policy. You can modify the configurations according to your requirements. If you have configured credentials in the policy, ensure that you update the credentials to access the host. If you have configured credentials in the policy, ensure that you update the credentials to access the host.
To filter polices and view applicable Agent details
Go to Configuration > Monitor Policies to view all monitor polices. You can filter the policies on this page to view applicable Agent details.
- To filter policies, use any or all of the following check boxes:
- Enabled
- Disabled
- Shared
- Not Shared
- Internal
- To view applicable Agent details:
- Click a policy action menu.
- Click View Applicable Agents to view the information on the Selected Agents page.
Use the Search Agent Name field to search for specific agents.
To delete a policy
On the Configuration > Monitor Policies page follow these steps:
- If the policy that you want to delete is enabled, disable it.
- Click the action menu for the policy, and click Delete and then click Yes on the confirmation message window.
Viewing the audit trail of monitor policies
As a tenant administrator, you can use the BMC Helix Audit Dashboard in BMC Helix Dashboards, to view the trail of the changes that were made to monitor policies. You can view the trail of the following operations:
- Create, edit, delete
- Policy status change
- Policy applied on the PATROL Agent
Scenario
Tina is a tenant administrator and Sarah is a system administrator at Apex Global. Tina has left on vacation and won't be back at work for two more weeks. Sarah has taken up some of Tina's responsibilities during this time. Sarah is looking at some monitor policies in the system and she wants to know when Tina created them and when they were updated. Because Tina is on vacation, how can Sarah obtain this information?
Sarah can log in to BMC Helix Dashboards and use the BMC Helix Audit Dashboard to see a complete audit trail of all monitor policies.
For instructions on opening the BMC Helix Audit Dashboard and for other details, see BMC Helix Audit Dashboard.
The following image displays the audit trail of monitor policies in the BMC Helix Audit Dashboard. Note that the selected resource type is MONITORING POLICY.
Where to go from here