Home Monitoring homelab with Zabbix
Post
Cancel

Monitoring homelab with Zabbix

image

Introduction

The best way to have visbility on what is going on in your homelab is to have monitoring over everything from Networking, Storage, and Compute hosts. To do this, I have decided to use Zabbix in HA on my Kubernetes cluster, while integrating it with my PostgreSQL HA cluster to ensure ultimate uptime of my monitoring solution.

Architecture

Below is a simple diagram showing the physical infrastructure backing this Zabbix deployment.

image

Kubernetes

To move this to Kubernetes, ideally we would want a PostgreSQL cluster to store everything in. We can achieve this by using a PostgreSQL operator in Kubernetes, which automates provisioning StatefulSets of databases, which automates the High Availability by switching the Kubernetes service to the master node.

  1. PostgreSQL HA cluster using Zalando PostgreSQL Operator
  2. Zabbix Server in HA with LINDS-Kubernetes/zabbix
  3. TrueNAS Host to host the PostgreSQL data.

Monitored objects

  1. 2x Core switches
  2. 5x Wireless AP’s
  3. Physical Host hardware (HPE and Dell)
  4. VMware ESXi Hypervisor OS
  5. 2x TrueNAS VM
  6. 2X OPNSense VM

Alerting

To receive alerting, I’ve set up Discord webhooks as well as ZBX Viewer to receive any notifications on my phone if there is any alerts.

Screenshot

Dashboard

image

Hosts

image

This post is licensed under CC BY 4.0 by the author.