diff options
| author | Patrik Keller <git@pkel.dev> | 2023-12-07 16:49:40 +0100 |
|---|---|---|
| committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2024-01-11 18:43:21 +0100 |
| commit | 1a6a6c903ec6e9e1beaad0a7bad60aa338ebb3a9 (patch) | |
| tree | 60428a8878eda511ec7cd8e817d6366a01199cd5 | |
| parent | Merge pull request #280206 from NixOS/backport-278498-to-release-23.11 (diff) | |
| download | nixpkgs-1a6a6c903ec6e9e1beaad0a7bad60aa338ebb3a9.tar.gz | |
nixos/netdata: add missing dependency for syslog alarms
Netdata depends on the `logger` utility for dispatching health alarms to
syslog. This dependency was missing in the systemd units environment.
Issue: https://github.com/NixOS/nixpkgs/issues/272702
Docs: https://learn.netdata.cloud/docs/alerting/notifications/agent-dispatched-notifications/syslog
Docs, archived: https://archive.is/mkQa4
(cherry picked from commit 3f50868d1040827184d52173cfe59aeb8de96a50)
| -rw-r--r-- | nixos/modules/services/monitoring/netdata.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/netdata.nix b/nixos/modules/services/monitoring/netdata.nix index de0e044453ee..7fec506b5a17 100644 --- a/nixos/modules/services/monitoring/netdata.nix +++ b/nixos/modules/services/monitoring/netdata.nix @@ -210,7 +210,15 @@ in { description = "Real time performance monitoring"; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; - path = (with pkgs; [ curl gawk iproute2 which procps bash ]) + path = (with pkgs; [ + curl + gawk + iproute2 + which + procps + bash + util-linux # provides logger command; required for syslog health alarms + ]) ++ lib.optional cfg.python.enable (pkgs.python3.withPackages cfg.python.extraPackages) ++ lib.optional config.virtualisation.libvirtd.enable (config.virtualisation.libvirtd.package); environment = { |
