The op5 Monitor back end can easily be used as a load balanced monitoring solution. The load balanced model looks like this.There are a few things you need to take care of before you can start setting up an load balanced monitoring. You need to make sure
![]()
you have at least two op5 Monitor servers of the same architecture up and running.
![]()
15551, op5 Monitor back end communication port
![]()
22, ssh (for the configuration sync).The mon command is used to make life a bit easier when it comes to setting up a load balanced solution. To get more detailed information about the command mon just execute like this:
2
3 Create and add ssh keys to and from the second peer by
as root user:
mon sshkey push --all
mon sshkey fetch --all
4
5
6
![]()
peer03 (This is the new one.)
2
3
4 Add the peers to one and each other
mon node ctrl peer02 -- mon node add peer03 type=peer
mon node ctrl peer03 -- mon node add peer02 type=peer
mon node ctrl peer03 -- mon node add peer01 type=peer
6 Restart monitor on peer01 and send the configuration to all peers again.
mon restart ; sleep 3 ; mon oconf push
2 Remove all peer configuration from peer02
mon node ctrl peer02 -- mon node remove peer01
mon node ctrl peer02 -- mon node remove peer03
3
4 Remove peer02 from the rest of the peers, in this case peer03
mon node ctrl --type=peer -- mon node remove peer02
5 Restart the rest of the peers, in this case only peer03
mon node ctrl --type=peer -- mon restart
6
7 To synchronize files between servers add a sync paragraph in the file /opt/monitor/op5/merlin/merlin.conf/opt/monitor/etc/htpasswd.users /opt/monitor/etc/htpasswd.usersFor more information and a more complex example please take a look at the howto in the git repository of the opensource project of Merlin: