Skip to header Skip to main navigation Skip to main content Skip to footer

Search form

Site branding

Home
What's up, home?

Main navigation

  • Home
  • Story mode
  • About
  • Features
  • Hardware list
  • Videos
  • GitHub (opens in new tab)
  • Daily AI generated stories (opens in new tab)

Part 53: Sorry, NixOS took my attention

Breadcrumbs

Breadcrumb

  • Home
  • Part 53: Sorry, NixOS took my attention

Main page content

By whatsuphome | 7:30 PM EET, Fri November 03, 2023

TL;DR

NixOS is an immutable, declarative Linux distro where the whole system is declared in /etc/nixos/configuration.nix. Getting the Zabbix agent running there took only a few lines of config plus adding zabbixAgent to the package list, so I was impressed
NixOS logo

Can you monitor NixOS with Zabbix? Of course you can! And that's why I've been silent lately.

Well the bold text is pretty much unnecassary. NixOS is at least semi-supported for Zabbix. I would not set my primary server with NixOS, not with its current state, but for everything else, it's awesome and different.

What is NixOS?

It's a very different kind of Linux distribution. It's like a merger of Gentoo, Arch and Ansible. You declare what you want, and behold, that happens. You can take your /etc/nixos/configuration.nix file and on any machine, be sure your machine will be reinstalled to exact state it was with your previous machine. It's immutable, you will always have a working configuration available.

This is a monitoring blog, why NixOS blurb?

Just because getting Zabbix agent to work on NixOS was so super easy! See, this is all I added to /etc/nixos/configuration.nix file

   services.zabbixAgent.enable = true;
   services.zabbixAgent.openFirewall = true;
   services.zabbixAgent.server = "my.whatsuphome.zabbix.server.address"

.. and on top of that, in the same file there's a list of packages you want to add, I added zabbixAgent there.

That's all to it!

So far after a week or two of NixOS investigation, I'm very impressed with it. It has 80,000 packages in its package repository; It guarantees it cannot break as you will always have your previous working configuration (or dozens of them) available; you can create profiles for all kinds of use cases you have from work to hobbies to banking; and all this just works! 

No, it's not for beginners, but for advanced Linux users, possibly for the ones with Puppet/Ansible/whatever similar experience it's amazing.

whatsuphome
zabbix
nixos
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
NixOS is an immutable, declarative Linux distro where the whole system is declared in /etc/nixos/configuration.nix. Getting the Zabbix agent running there took only a few lines of config plus adding zabbixAgent to the package list, so I was impressed

Search

Who am I?

  • Janne Pikkarainen from Finland 🇫🇮
  • Began with computers in 1986 with C64
  • Doing IT for living since 1999
  • Principal Site Reliability Engineer at Forcepoint
  • A Zabbix Summit speaker every year since 2022
  • Walking, talking Zabbix commercial

Support my project

Buy me a coffee 

Footer menu

  • Contact

What's up, home? | Janne Pikkarainen | contact(at)whatsuphome.fi | 2022 - 2026

Developed and Designed by Janne Pikkarainen