diff options
| author | Aaron Andersen <aaron@fosslib.net> | 2021-06-08 19:42:39 -0400 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2021-07-01 03:11:24 +0000 |
| commit | 0315b6a3c7fa2c31287232c2423ce172474718a4 (patch) | |
| tree | 34739ac97823ae64af7ec0d2a6459d0eb0c2167d | |
| parent | jetbrains: updates (diff) | |
| download | nixpkgs-0315b6a3c7fa2c31287232c2423ce172474718a4.tar.gz | |
zabbixAgent: add bash to $PATH
(cherry picked from commit a0a11fd22c5786aa7c0f025115506c6a83221951)
| -rw-r--r-- | nixos/modules/services/monitoring/zabbix-agent.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/zabbix-agent.nix b/nixos/modules/services/monitoring/zabbix-agent.nix index e7dd9e3393d0..7eb6449e384d 100644 --- a/nixos/modules/services/monitoring/zabbix-agent.nix +++ b/nixos/modules/services/monitoring/zabbix-agent.nix @@ -157,7 +157,10 @@ in wantedBy = [ "multi-user.target" ]; - path = [ "/run/wrappers" ] ++ cfg.extraPackages; + # https://www.zabbix.com/documentation/current/manual/config/items/userparameters + # > User parameters are commands executed by Zabbix agent. + # > /bin/sh is used as a command line interpreter under UNIX operating systems. + path = with pkgs; [ bash "/run/wrappers" ] ++ cfg.extraPackages; serviceConfig = { ExecStart = "@${cfg.package}/sbin/zabbix_agentd zabbix_agentd -f --config ${configFile}"; |
