monitoring plugins: fix path to sudo and mailq

this fixes check_mailq with postfix at least
This commit is contained in:
symphorien+git@xlumurb.eu 2019-12-26 12:00:00 +00:00 committed by Austin Seipp
parent be90b35b9e
commit 18090331d6

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, runCommand
, coreutils, gnugrep, gnused, lm_sensors, net-snmp, openssh, openssl, perl
, dnsutils, libdbi, libmysqlclient, zlib, openldap, procps
, runtimeShell }:
@ -44,6 +44,11 @@ in stdenv.mkDerivation {
configureFlagsArray=(
--with-ping-command='/run/wrappers/bin/ping -4 -n -U -w %d -c %d %s'
--with-ping6-command='/run/wrappers/bin/ping -6 -n -U -w %d -c %d %s'
--with-sudo-command='/run/wrappers/bin/sudo'
--with-mailq-command='${runCommand "mailq-wrapper" {preferLocalBuild=true;} ''
mkdir -p $out/bin
ln -s /run/wrappers/bin/sendmail $out/bin/mailq
''}/bin/mailq'
)
'';