# Discovery Rule Engine Discovery Rule Engine helps you automate the activities such as adding monitors to a device or adding a device to a business view that you carryout after adding the devices to OpManager. This helps you start monitoring the devices straightaway as soon as you add them and avoid repetitive manual effort. **How does Discovery Rule Engine Work?** The Discovery Rule Engine is condition/criteria based. During discovery, devices that satisfy the condition/criteria are associated with the actions specified in the Discovery Rule Engine. **Steps to add a Discovery Rule Engine** 1. Go to **Settings** -> **Discovery** -> **Discovery Rule Engine** and click on **Add rule** on the top right. 2. Enter a **Name** and **Description** for the Discovery Rule Engine. 3. **Criteria** refers to the parameter of the device which must be checked for applying the rule (Such as DNS Name / Category / Type...). Define the Criteria and select the Condition. Eg. Select Service Name as the Criteria and equals as the Condition, and enter the POP3Svc (POP3Svc is a MSExchange service. This is to verify whether the discovered device is an exchange server or not.) 4. If required you can define multiple criteria, but have to select either AND or OR option. **AND**: Executes the action when all the defined criteria are satisfied. **OR**: Executes the actions when any one of the defined criteria is satisfied. 5. Define the **Actions**. An **Action** refers to the process to be performed on a device if it satisfies the specified criteria. The following are the list of possible actions that can be performed by a Discovery rule Engine: - Associate a Process Monitor with the device - Associate a Service Monitor with the device - Associate a Windows NT Service Monitor with the device - Associate a File / Folder / Script Monitor with the device - Add the device to a Business View - Associate a URL Monitor with the device - Associate an Event Log Rule to the device - Associate MSSQL Monitors with the device - Associate Notification Profiles with the device 6. Select the required action. You can add additional actions by clicking on the **Add (+)**. Following are the list of actions that be performed on the created Discovery Rule. - Edit - Copy As - Enable/Disable - Delete 7. Click on **Save**. ![Discovery rule engine in OpManager: Rule addition](https://www.manageengine.com/network-monitoring/help/images/rule-engine-new.PNG) #### Re-running a Discovery Rule Engine To re-run a rule on demand, 1. Select the rule that you want to re-run. 2. Click on the **Re-run** button. 3. Select the devices on which you want to execute the rule. 4. Click **Run.** ![Discovery rule engine in OpManager: Device Selection](https://www.manageengine.com/network-monitoring/help/images/rule-engine-rerun.png) --- **Frequently asked questions:** 1. [How to discover devices and interfaces in OpManager?](https://www.manageengine.com/network-monitoring/help/discover-networks.html) 2. [How to add a new credential?](https://www.manageengine.com/network-monitoring/help/add-credentials.html) 3. [Can I add a non-admin user account for WMI?](https://www.manageengine.com/network-monitoring/kb/adding-non-admin-user-for-wmi.html) 4. [Can I add devices using SSH?](https://www.manageengine.com/network-monitoring/help/adding-devices-using-ssh.html) 5. [Why are devices discovered as 'Unknown'?](https://www.manageengine.com/network-monitoring/faq/devices-discovered-as-unknown-devices-opmanager.html) 6. [What are devices supported in OpManager?](https://www.manageengine.com/network-monitoring/faq/all-devices-supported.html) 7. [Why are interfaces not discovered for my device?](https://www.manageengine.com/network-monitoring/faq/interfaces-not-discovered.html) 8. [How can I associate device templates to a newly discovered device?](https://www.manageengine.com/network-monitoring/help/associate-device-template.html) 9. [How to associate monitors to the discovered device?](https://www.manageengine.com/network-monitoring/help/adding-custom-monitors.html) 10. [What is a discovery filter?](https://www.manageengine.com/network-monitoring/help/discovery-filter.html) 11. [How to manage or unmanage a device?](https://www.manageengine.com/network-monitoring/help/managing-and-unmanaging-a-device.html) 12. [How to configure device dependencies?](https://www.manageengine.com/network-monitoring/help/configuring-device-dependencies.html) 13. [How can find the missing VMs and hosts?](https://www.manageengine.com/network-monitoring/faq/find-missing-vms-and-hosts-opmanager.html) 14. [How can I discover a VLAN?](https://www.manageengine.com/network-monitoring/faq/vlan-discovery-in-opmanager.html) 15. [How does availability monitoring work in OpManager?](https://www.manageengine.com/network-monitoring/availability-monitoring.html) 16. [What are the basic system requirements to install and use OpManager?](https://www.manageengine.com/network-monitoring/help/hardware-and-software-requirements.html) 17. [How can I troubleshoot issues with device discovery?](https://www.manageengine.com/network-monitoring/help/add-device-failure-messages.html) 18. [How can I troubleshoot issues with VCenter/ESX discovery?](https://www.manageengine.com/network-monitoring/faq/troubleshooting-problems-in-vcenter-discovery.html)