---
title: "Configure a specific poller for hostgroups"
description: "Configuring a specific poller for hostgroups allows targeted polling of hosts from designated pollers in OP5. This is done by creating a hostgroup, assigning hosts, modifying the merlin.conf file on masters, and restarting the masters."
url: "https://docs.itrsgroup.com/docs/faq/op5/360020251473-op5-monitor-configure-a-specific-poller-for-hostgroups/index.html"
---
There may be a scenario where you want a specific host or a hostgroup to be polled from a specific poller.

Case study

In this HOWTO we will describe how to solve the following case:

- 2 masters: **Master1** and **Master2**

- 1 poller: **Poller1**

- 2 hosts that we want to be polled from **Poller1**: **Host1** and **Host2**

## Step-by-step guide

This is how you do it.

1. Create a hostgroup. We will call this **poller1-group.**
2. Add **Host1** and **Host2** to the newly created hostgroup **poller1-group**.

![Screenshot](https://docscdn.itrsgroup.com/faq/images/op5/360020251473-inline-1-mceclip0.png)

![Screenshot](https://docscdn.itrsgroup.com/faq/images/op5/360020251473-inline-2-mceclip1.png)

1. On **Master1** and **Master2**, modify the **merlin.conf** located at **/opt/monitor/op5/merlin/**
   1. In the **merlin.conf** file you will see all your peers and pollers listed. In the Poller1 include the following line to add a hostgroup to the poller:

      ```
      hostgroup = poller1-group
      ```

   2. Your **merlin.conf** file will look *something* like this:

      ```
      poller Poller1 {
      hostgroup = poller1-group
      address = Poller1.somedomain.com
      port = 15551}
      ```

   3. When **both** masters have been edited, restart the masters. On each master, do:

      **Restart masters**

      ```
      # mon restart
      ```


