nixpkgs/nixos/modules/services/monitoring
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
..
dd-agent dd-agent: fix multiple tags in the config file 2017-10-05 19:33:18 -03:00
prometheus nixos/prometheus: Correct documentation for external_labels 2017-11-17 11:06:03 +00:00
apcupsd.nix
arbtt.nix
bosun.nix
cadvisor.nix
collectd.nix
das_watchdog.nix
fusion-inventory.nix FusionInventory: Code cleanup 2017-09-25 10:39:11 +02:00
grafana.nix
graphite.nix graphite: override django and django_tagging 2017-11-04 17:53:35 +01:00
hdaps.nix
heapster.nix
longview.nix
monit.nix nixos/monit: install monit as system package, use default config file path 2017-09-28 01:20:20 +02:00
munin.nix nixos/munin: fix broken plugin wrappers 2017-11-25 11:23:56 +01:00
nagios.nix
netdata.nix
osquery.nix osquery: init at 2.5.2 2017-07-24 21:47:32 -04:00
riemann-dash.nix
riemann-tools.nix
riemann.nix
scollector.nix
smartd.nix smartd: fix 'cat: command not found' error 2017-11-13 12:52:24 -05:00
statsd.nix
sysstat.nix
systemhealth.nix
teamviewer.nix
telegraf.nix
ups.nix
uptime.nix
vnstat.nix
zabbix-agent.nix
zabbix-server.nix