diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2023-12-02 14:20:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-02 14:20:23 +0100 |
commit | 6a5ba089a16dac44a26ccf067dfd73c192c5f369 (patch) | |
tree | c9f3c94aff7030a3fda5206360ba18d2b18ac34b /pkgs/servers | |
parent | 45674020336850b012d7cacbfb386eb25210a859 (diff) | |
parent | 4c87c27f5a977abcf9500e9a23860b5b23f0917a (diff) |
Merge pull request #269777 from thefloweringash/monitoring-plugins-ping
monitoring-plugins: fix path to ping in check_ping
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/monitoring/plugins/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/servers/monitoring/plugins/default.nix b/pkgs/servers/monitoring/plugins/default.nix index 2f6122caa69e8..6f3d8c5ffd897 100644 --- a/pkgs/servers/monitoring/plugins/default.nix +++ b/pkgs/servers/monitoring/plugins/default.nix @@ -34,7 +34,6 @@ let lm_sensors net-snmp procps - unixtools.ping ]; mailq = runCommand "mailq-wrapper" { preferLocalBuild = true; } '' @@ -76,8 +75,8 @@ stdenv.mkDerivation rec { -e 's|^DEFAULT_PATH=.*|DEFAULT_PATH=\"${binPath}\"|' configureFlagsArray+=( - --with-ping-command='ping -4 -n -U -w %d -c %d %s' - --with-ping6-command='ping -6 -n -U -w %d -c %d %s' + --with-ping-command='${lib.getBin unixtools.ping}/bin/ping -4 -n -U -w %d -c %d %s' + --with-ping6-command='${lib.getBin unixtools.ping}/bin/ping -6 -n -U -w %d -c %d %s' ) install -Dm555 ${share} $out/share |