Hi experts,
I'm working to put together an experimental Zabbix build on Azure - something that I'm sure has been done a million times before. I think I'm so very close to completing it, but I can't seem to get the Zabbix UI to recognise that the Zabbix server is running when I access the UI via the cluster VIP......

The configuration I have is this :
Cluster Configuration Details so far
I've configured the Zabbix front end server (/etc/zabbix/web/zabbix.conf.php) to contain the following :
i.e. $ZBX_SERVER is set to the IP of the CLUSTER.
The only change in the /etc/httpd/conf.d/zabbix.conf is to the timezone as usual.
On each Zabbix server within the cluster, the zabbix_server.conf file is the same (showing basic output only) :
I have read in various places, such as https://ericsysmin.com/2016/02/18/configuring-high-availability-ha-zabbix-server-on-centos-7/> to update the SourceIP and ListenIP parameters in the zabbix_server.conf with the cluster VIP address. I've done this and restarted the zabbix server, but it makes no difference with theZabbix GUI still insisting that the server isn't running.
I've probably made a simple "newbie" mistake and omitted or misunderstood something.
All suggestions as to a solution are welcomed. So far I've thought of :
Thanks in advance.
ITOMDave
I'm working to put together an experimental Zabbix build on Azure - something that I'm sure has been done a million times before. I think I'm so very close to completing it, but I can't seem to get the Zabbix UI to recognise that the Zabbix server is running when I access the UI via the cluster VIP......
The configuration I have is this :
- Database as an Azure MYSql service
- 2 VM's for the Zabbix server (one will be an active node, the other a standby node).
- VM's in a pacemaker / corosync cluster.
- 2 VM's
- Load-balanced (or at least will be !!)
Cluster Configuration Details so far
- Cluster VIP of 10.1.1.100
- 2 nodes in the cluster : pcs status shows :
Cluster name: N-PRD-CL1
Stack: corosync
Current DC: N-PRD-L-Cor1 (version 1.1.19-8.el7_6.4-c3c624ea3d) - partition with quorum
Last updated: Sun Jul 28 22:21:12 2019
Last change: Sun Jul 28 19:22:50 2019 by hacluster via cibadmin on N-PRD-L-Cor1
2 nodes configured
2 resources configured
Online: [ N-PRD-L-Cor1 N-PRD-L-Cor2 ]
Full list of resources:
cluster_vip (ocf::heartbeat:IPaddr2): Started N-PRD-L-Cor1
zabbix_server (systemd:zabbix-server): Started N-PRD-L-Cor1
Daemon Status:
corosync: active/enabled
pacemaker: active/enabled
pcsd: active/enabled
I've configured the Zabbix front end server (/etc/zabbix/web/zabbix.conf.php) to contain the following :
$ZBX_SERVER = '10.1.1.100';
$ZBX_SERVER_PORT = '10051';
$ZBX_SERVER_NAME = '';
$ZBX_SERVER_PORT = '10051';
$ZBX_SERVER_NAME = '';
i.e. $ZBX_SERVER is set to the IP of the CLUSTER.
The only change in the /etc/httpd/conf.d/zabbix.conf is to the timezone as usual.
On each Zabbix server within the cluster, the zabbix_server.conf file is the same (showing basic output only) :
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_server.pid
SocketDir=/var/run/zabbix
DBHost=xxxxxxxxxxxxxxxxxxxxx
DBName=xxxxxxxxxxxxxxxxxxxx
DBUser=xxxxxxxxxxxxxxxx
DBPassword=xxxxxxxxxxxx
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
Timeout=4
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
LogSlowQueries=3000
LogFileSize=0
PidFile=/var/run/zabbix/zabbix_server.pid
SocketDir=/var/run/zabbix
DBHost=xxxxxxxxxxxxxxxxxxxxx
DBName=xxxxxxxxxxxxxxxxxxxx
DBUser=xxxxxxxxxxxxxxxx
DBPassword=xxxxxxxxxxxx
SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
Timeout=4
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
LogSlowQueries=3000
I have read in various places, such as https://ericsysmin.com/2016/02/18/configuring-high-availability-ha-zabbix-server-on-centos-7/> to update the SourceIP and ListenIP parameters in the zabbix_server.conf with the cluster VIP address. I've done this and restarted the zabbix server, but it makes no difference with theZabbix GUI still insisting that the server isn't running.
I've probably made a simple "newbie" mistake and omitted or misunderstood something.
All suggestions as to a solution are welcomed. So far I've thought of :
- Do I need to do anything in Azure - the VIP only 'exists' in the context of pcs ?
- I see that there are some pcs resource agents for azure :
azure-lb
azure-repo-svc
azure-repo-svc
azure-repo-svc.path
azure-repo-svc.path
Do I need to do something with these ?
Thanks in advance.
ITOMDave
Comment