Sometimes 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 Poller1 section, include the following line:
hostgrouphostgroup = poller1-group
-
Your configuration will look something like this:
merlin.confpoller Poller1 { hostgroup = poller1-group address = Poller1.somedomain.com port = 15551}
- In the Poller1 section, include the following line:
-
When both masters have been edited, restart the masters. On each master, do:
Restart mastersmon restart
-
Tags:
- Merlin
- master
- poller
- merlin.conf
- hostgroups
Comments
0 comments
Please sign in to leave a comment.