diff options
| author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-11-21 12:40:40 -0500 |
|---|---|---|
| committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-11-25 11:23:56 +0100 |
| commit | bd3e49a80ec70a9619d339a03a39ba3f580fba04 (patch) | |
| tree | e2705f855322d81932f80f1d78332979729ca4f0 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | a2dc37c7d1390d8aad8e2d888feb5bcd28656f4a (diff) | |
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".
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
