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.
- Create a hostgroup. We will call this poller1-group.
- Add Host1 and Host2 to the newly created hostgroup poller1-group.
- On Master1 and Master2, modify the merlin.conf located at /opt/monitor/op5/merlin/
- 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
-
Your merlin.conf file will look something like this:
poller Poller1 {
hostgroup = poller1-group
address = Poller1.somedomain.com
port = 15551} -
When both masters have been edited, restart the masters. On each master, do:
Restart masters# mon restart
- 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:
Comments
0 comments
Please sign in to leave a comment.