What's up, home? part 27

What's up, home? part 27

Can you have a Zabbix HA cluster at home? Of course you can! By day, I am a monitoring tech lead in a global cyber security company. By night, I monitor my home with Zabbix & Grafana and do some weird experiments with them. Welcome to my blog about this project.

The winter is coming, and due the world events it might bring one to two hours rolling blackouts here in Finland, too. As I have my home Zabbix running on my Raspberry Pi, without an UPS this would mean my Zabbix possibly could not monitor the actual duration of the outages, as my Zabbix server would be without power, too, right?

No. Thanks to simplicity of setting up a HA cluster with Zabbix, I now have a two-node Zabbix server setup at home, with the standby node running on my laptop, which of course can run on battery for the duration of the blackout. So, while this post is kind of boring -- I'm not introducing anything weird to monitor today -- I hope the post encourages you to try out the high-availability features of Zabbix. It's easy!

Setup the nodes

As written on Zabbix documentation, setting up HA on Zabbix means two additional lines added to your zabbix_server.conf file:

  • HANodeName for descriptive, unique name of the node
  • NodeAddress, which should be the address Zabbix front-end will then use

That's it! And, that is what I did. Then make sure your Zabbix servers point to same database, and that all your Zabbix servers can connect to that database.

But does it work?

Of course it does!

Here's the status as seen from Zabbix Reports --> System Information:

No alt text provided for this image

And here's the status as reported by sudo zabbix_server -R ha_status from the command line on my Raspberry Pi:

No alt text provided for this image

Out of the curiosity I tried out what happens if I try the same command on my laptop. This happens:

No alt text provided for this image

Still to do

As nowadays due our baby my time is very limited, I do have one remaining task to make this perfect: to setup a database cluster. For now MariaDB is running on my Raspberry Pi only, so I would need to spread it to run on my laptop, too. I will most likely do this with MariaDB Galera Cluster, but that will be another story.

Winter, you might take out my electricity, but you won't take down my Zabbix.

I have been working at Forcepoint since 2014 and I won't let my systems go down.

Joost van Genderen

Senior Telecom dude

2 年

great little project for those dark evenings. thnx :-) yet another todo on my zabbix list.

Mikko Tikkala

Senior Network Security Specialist @ Insta

2 年

Thanks for this very valid topic. I guess I'm going to set up HA too.

回复

要查看或添加评论,请登录

Janne Pikkarainen的更多文章

  • What's up, home? part 30

    What's up, home? part 30

    Can you monitor Northern Lights with Zabbix? Of course you can! By day, I am a monitoring tech lead in a global cyber…

    3 条评论
  • What's up, home? part 29

    What's up, home? part 29

    Can you detect a crying baby with Zabbix? Of course you can! By day, I am a monitoring tech lead in a global cyber…

    2 条评论
  • What's up, home? part 28

    What's up, home? part 28

    Can you monitor FlightGear flight simulator with Zabbix? Of course you can! By day, I am a monitoring tech lead in a…

    9 条评论
  • What's up, home? part 26

    What's up, home? part 26

    Can you create fairy tales with Zabbix? Of course you can! By day, I am a monitoring technical lead in a global cyber…

  • What's up, home? part 25

    What's up, home? part 25

    Can you monitor your backups with Zabbix? Of course you can -- and you should! By day, I am a monitoring tech lead in a…

    1 条评论
  • What's up, home? part 24

    What's up, home? part 24

    Can you monitor Finland's total real-time power consumption with Zabbix? Of course you can! By day, I am a monitoring…

    4 条评论
  • What's up, home? part 23

    What's up, home? part 23

    Can you monitor a banana with Zabbix? Of course you can! By day, I am a monitoring tech lead in a global cyber security…

    4 条评论
  • What's up, home? part 22

    What's up, home? part 22

    Can you use Zabbix as a countdown timer? Of course you can! By day, I am a monitoring technical lead in a global cyber…

    9 条评论
  • What's up, home? part 21

    What's up, home? part 21

    Can you make sure your video streams are up with Zabbix? Of course you can! By day, I am a monitoring technical lead in…

  • What's up, home? part 20

    What's up, home? part 20

    Can you monitor your upcoming electricity bill with Zabbix? Of course you can! By day, I am a monitoring technical lead…

社区洞察

其他会员也浏览了