monitoring plugins: fix path to sudo and mailq
this fixes check_mailq with postfix at least
This commit is contained in:
parent
be90b35b9e
commit
18090331d6
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook
|
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, runCommand
|
||||||
, coreutils, gnugrep, gnused, lm_sensors, net-snmp, openssh, openssl, perl
|
, coreutils, gnugrep, gnused, lm_sensors, net-snmp, openssh, openssl, perl
|
||||||
, dnsutils, libdbi, libmysqlclient, zlib, openldap, procps
|
, dnsutils, libdbi, libmysqlclient, zlib, openldap, procps
|
||||||
, runtimeShell }:
|
, runtimeShell }:
|
||||||
@ -44,6 +44,11 @@ in stdenv.mkDerivation {
|
|||||||
configureFlagsArray=(
|
configureFlagsArray=(
|
||||||
--with-ping-command='/run/wrappers/bin/ping -4 -n -U -w %d -c %d %s'
|
--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-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'
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user