nixpkgs/nixos
Kjetil Orbekk bd3e49a80e nixos/munin: fix broken plugin wrappers
The munin-node service used wrapProgram to inject environment variables.
This doesn't work because munin plugins depend on argv[0], which is
overwritten when the executable is a script with a shebang line (example
below).

This commit removes the wrappers and instead passes the required
environment variables to munin-node.

Eliminating the wrappers resulted in some broken plugins, e.g., meminfo
and hddtemp_smartctl. That was fixed with the per-plugin configuration.

Example:

  The plugin if_eth0 is a symlink to /.../plugins/if_, which uses $0
  to determine that it should monitor traffic on the eth0 interface.

  if_ is a wrapped program, and runs `exec -a "$0" .if_-wrapped`

  .if_-wrapped has a "#!/nix/.../bash" line, which results in bash
  changing $0, and as a result the plugin thinks my interface
  is called "-wrapped".
2017-11-25 11:23:56 +01:00
..
doc/manual Merge pull request #31972 from bkchr/copyfilefromhost_missing_documentation 2017-11-23 19:50:39 -05:00
lib nixos/testing: fix after --set ceased to evaluate the value 2017-11-19 14:15:19 +00:00
maintainers amazon-image: make derivation name configurable 2017-10-23 16:22:24 -04:00
modules nixos/munin: fix broken plugin wrappers 2017-11-25 11:23:56 +01:00
tests nixos.tests.installer.swraid: increase drive size 2017-11-25 07:46:28 +01:00
COPYING
default.nix Remove nixFallback 2017-03-06 15:54:50 +01:00
README
release-combined.nix Merge pull request #31805 from gleber/make-switch-to-configuration-pure 2017-11-19 19:03:52 +00:00
release-small.nix php: pcre test blocks -small channels as well 2017-11-12 11:03:54 +01:00
release.nix Merge pull request #31805 from gleber/make-switch-to-configuration-pure 2017-11-19 19:03:52 +00:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.