librenms: fix nagios plugin dir

The monitoring-plugins package used by LibreNMS services installs its binaries in the bin folder, not libexec,
as seen in b3b2b28c1d/pkgs/servers/monitoring/plugins/default.nix (L92)
This commit is contained in:
Sam Grimee 2024-05-28 15:05:35 +00:00 committed by Yureka
parent 4397a6d0a6
commit 150125abe2

View File

@ -80,7 +80,7 @@ in phpPackage.buildComposerProject rec {
--replace '"default": "/usr/bin/snmpwalk",' '"default": "${net-snmp}/bin/snmpwalk",' \
--replace '"default": "/usr/bin/virsh",' '"default": "${libvirt}/bin/virsh",' \
--replace '"default": "/usr/bin/whois",' '"default": "${whois}/bin/whois",' \
--replace '"default": "/usr/lib/nagios/plugins",' '"default": "${monitoring-plugins}/libexec",' \
--replace '"default": "/usr/lib/nagios/plugins",' '"default": "${monitoring-plugins}/bin",' \
--replace '"default": "/usr/sbin/sendmail",' '"default": "${system-sendmail}/bin/sendmail",'
substituteInPlace $out/LibreNMS/wrapper.py --replace '/usr/bin/env php' '${phpPackage}/bin/php'