Skip to content

Commit

Permalink
zabbix HA setup added + pdf updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrik Uytterhoeven authored and Patrik Uytterhoeven committed Mar 10, 2024
1 parent c6433c3 commit a793f50
Show file tree
Hide file tree
Showing 8 changed files with 410 additions and 69 deletions.
Binary file added docs/installation/image/ha/HA-setup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 12 additions & 4 deletions docs/installation/installing-zabbix-ha.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ In this setup we will use 2 Zabbix servers but you are not limited to this you c

The HA setup in Zabbix is rather basic but works like a charm so don't expect fancy things like load balancing.

Just like we did in our basic setup we will make a few notes again about the setup of the servers we have.
I added the IP's that we will use here don't forgot to make notes of your own ip adresses.


![HA Setup](image/ha/HA-setup.png){width=80%}


Just like we did in our basic setup we will make a few notes again about the setup of the servers we have. I added the IP's that we will use here don't forgot to make notes of your own ip adresses.

| Server | IP |
|:---- |:---- |
Expand All @@ -17,7 +22,9 @@ Just like we did in our basic setup we will make a few notes again about the set
|Virtual IP |192.168.0.135 |


As you notice our DB is not HA this is not a Zabbix component you have to implement your own solution this can be a HA SAN or you DB in a HA cluster setup.
???+ Note
As you notice our DB is not HA this is not a Zabbix component you have to implement your own solution this can be a HA SAN or you DB in a HA cluster setup.
The cluster setup of our DB is out of the scope and not related to Zabbix so we will not cover this here.


## Let's install our Postgres DB
Expand All @@ -26,7 +33,7 @@ As you notice our DB is not HA this is not a Zabbix component you have to implem
If you are not running on x86 or like to try on another OS, then have a look at https://www.postgresql.org/download/ for the commands you need.

???+ Warning
In this exercise we will install a PostgreSQL db the quick way if you like to it in a more correct wqy have a look at out topic ```Installing Zabbix DB Server```.
In this exercise we will take some shortcuts for the installation of the PostgreSQLDB and the OS. Look at our previous topics to get a better understanding where to tweak.


```
Expand Down Expand Up @@ -61,7 +68,8 @@ host zabbix zabbix 192.168.0.130/32 scram-sha-256
host zabbix zabbix 192.168.0.131/32 scram-sha-256
host all all 127.0.0.1/32 scram-sha-256
```
After we changed the pg_hba file don't forget to restart postgres else the settings will not be applied. But before we restart let us also edit the file postgresql.conf and allow our database to listen on our network interface for incomming connections from the zabbix server.
After we changed the pg_hba file don't forget to restart postgres else the settings will not be applied.
But before we restart let us also edit the file postgresql.conf and allow our database to listen on our network interface for incomming connections from the zabbix server.
Postgresql will standard only allow connections from the socket.

```
Expand Down
188 changes: 171 additions & 17 deletions site/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,27 @@









<li class="md-nav__item">
<a href="/Zabbix-Book/installation/installing-zabbix-ha/" class="md-nav__link">


<span class="md-ellipsis">
Configure Zabbix HA
</span>


</a>
</li>




</ul>
</nav>

Expand Down Expand Up @@ -1279,7 +1300,7 @@


<span class="md-ellipsis">
Monitoring with Proxies
Authentication
</span>


Expand All @@ -1289,7 +1310,7 @@
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_12_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_12">
<span class="md-nav__icon md-icon"></span>
Monitoring with Proxies
Authentication
</label>
<ul class="md-nav__list" data-md-scrollfix>

Expand All @@ -1300,11 +1321,74 @@


<li class="md-nav__item">
<a href="/Zabbix-Book/proxies/installing-proxies/" class="md-nav__link">
<a href="/Zabbix-Book/authentication/zabbix-http/" class="md-nav__link">


<span class="md-ellipsis">
Monitoring with Proxies
Authentication with HTTP
</span>


</a>
</li>










<li class="md-nav__item">
<a href="/Zabbix-Book/authentication/zabbix-ldap/" class="md-nav__link">


<span class="md-ellipsis">
Authentication with LDAP
</span>


</a>
</li>










<li class="md-nav__item">
<a href="/Zabbix-Book/authentication/zabbix-saml/" class="md-nav__link">


<span class="md-ellipsis">
Authentication with SAML
</span>


</a>
</li>










<li class="md-nav__item">
<a href="/Zabbix-Book/authentication/zabbix-mfa/" class="md-nav__link">


<span class="md-ellipsis">
Zabbix MFA support
</span>


Expand Down Expand Up @@ -1349,7 +1433,7 @@


<span class="md-ellipsis">
Securing Zabbix
Monitoring with Proxies
</span>


Expand All @@ -1359,7 +1443,7 @@
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_13_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_13">
<span class="md-nav__icon md-icon"></span>
Securing Zabbix
Monitoring with Proxies
</label>
<ul class="md-nav__list" data-md-scrollfix>

Expand All @@ -1370,11 +1454,11 @@


<li class="md-nav__item">
<a href="/Zabbix-Book/security/securing-zabbix/" class="md-nav__link">
<a href="/Zabbix-Book/proxies/installing-proxies/" class="md-nav__link">


<span class="md-ellipsis">
Securing Zabbix Frontend
Monitoring with Proxies
</span>


Expand Down Expand Up @@ -1419,7 +1503,7 @@


<span class="md-ellipsis">
Maintaining Zabbix
Securing Zabbix
</span>


Expand All @@ -1429,7 +1513,7 @@
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_14_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_14">
<span class="md-nav__icon md-icon"></span>
Maintaining Zabbix
Securing Zabbix
</label>
<ul class="md-nav__list" data-md-scrollfix>

Expand All @@ -1440,11 +1524,11 @@


<li class="md-nav__item">
<a href="/Zabbix-Book/maintenance/maintaining-zabbix/" class="md-nav__link">
<a href="/Zabbix-Book/security/securing-zabbix/" class="md-nav__link">


<span class="md-ellipsis">
Maintaining Zabbix
Securing Zabbix Frontend
</span>


Expand Down Expand Up @@ -1489,7 +1573,7 @@


<span class="md-ellipsis">
Monitoring Windows
Maintaining Zabbix
</span>


Expand All @@ -1499,7 +1583,7 @@
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_15_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_15">
<span class="md-nav__icon md-icon"></span>
Monitoring Windows
Maintaining Zabbix
</label>
<ul class="md-nav__list" data-md-scrollfix>

Expand All @@ -1510,11 +1594,11 @@


<li class="md-nav__item">
<a href="/Zabbix-Book/windows/monitoring-windows/" class="md-nav__link">
<a href="/Zabbix-Book/maintenance/maintaining-zabbix/" class="md-nav__link">


<span class="md-ellipsis">
Monitoring Windows
Maintaining Zabbix
</span>


Expand Down Expand Up @@ -1559,7 +1643,7 @@


<span class="md-ellipsis">
Zabbix API
Monitoring Windows
</span>


Expand All @@ -1568,6 +1652,76 @@

<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_16_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_16">
<span class="md-nav__icon md-icon"></span>
Monitoring Windows
</label>
<ul class="md-nav__list" data-md-scrollfix>







<li class="md-nav__item">
<a href="/Zabbix-Book/windows/monitoring-windows/" class="md-nav__link">


<span class="md-ellipsis">
Monitoring Windows
</span>


</a>
</li>




</ul>
</nav>

</li>

















<li class="md-nav__item md-nav__item--section md-nav__item--nested">






<input class="md-nav__toggle md-toggle md-toggle--indeterminate" type="checkbox" id="__nav_17" >


<label class="md-nav__link" for="__nav_17" id="__nav_17_label" tabindex="">


<span class="md-ellipsis">
Zabbix API
</span>


<span class="md-nav__icon md-icon"></span>
</label>

<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_17_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_17">
<span class="md-nav__icon md-icon"></span>
Zabbix API
</label>
Expand Down
Loading

0 comments on commit a793f50

Please sign in to comment.