At this moment it’s just possible to configure a single Zabbix server on senhasegura as you can see below:
But I would like to configure two Zabbix servers on my senhasegura, how do I do it?
So, in this case, we won’t use the senhasegura web interface, but the orbit cli.
Firstly we need to log in to senhasegura using the user mt4adm:
After logging in, we need to allow the Zabbix servers IPs on the senhasegura firewall, as you can see below:
In this picture, you see that lines 35 and 36 corresponds an each Zabbix server.
For to this configuration, use:
and before the line with "COMMIT" (line 37), add the following string:
-A ZABBIX -s zabbix_server_ip/32 -p tcp -m tcp --dport 10050 -m conntrack --ctstate NEW -j ACCEPT
add a line for each server that you want to set (in the picture we’ve two lines).
Now that the rules have been configured, we’ll configure the Zabbix.
Go to /etc/zabbix and edit:"
At line 98, fill up with the Zabbix IPs, separated by a comma:
And at line 139, fill up with the Zabbix IPs and port 10050:
Now save the file and restart the service:
At this moment the Zabbix servers have been configured on senhasegura and now you just need to register senhasegura on Zabbix monitoring.