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 nixos/xsession: use graphical systemd user target 2017-05-29 15:05:28 +02:00
bosun.nix nixos: use types.lines for extraConfig 2016-10-23 19:41:43 +02:00
cadvisor.nix cadviser: add storageDriverPasswordFile option 2017-04-08 14:15:18 +02:00
collectd.nix collectd service: removed insecure AmbientCapabilities 2017-06-30 11:57:46 +00:00
das_watchdog.nix das_watchdog: fix service type 2017-03-09 16:14:17 +01:00
fusion-inventory.nix FusionInventory: Code cleanup 2017-09-25 10:39:11 +02:00
grafana.nix treewide: use boolToString function 2017-04-11 18:18:53 +02:00
graphite.nix graphite: override django and django_tagging 2017-11-04 17:53:35 +01:00
hdaps.nix
heapster.nix
longview.nix longview service: don't write passwords to nix store 2017-03-26 23:06:42 +01:00
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 nagios service: network-interfaces.target -> network.target 2016-09-13 11:19:22 +02:00
netdata.nix netdata service: init 2016-11-10 16:12:52 +08:00
osquery.nix osquery: init at 2.5.2 2017-07-24 21:47:32 -04:00
riemann-dash.nix
riemann-tools.nix riemann-health service: add procps to path (#19237) 2016-10-05 10:52:15 -04:00
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 telegraf: init at 1.0.0 2016-09-14 07:19:55 +02:00
ups.nix ups: fix config generation 2017-04-23 21:35:48 -07:00
uptime.nix
vnstat.nix vnstat: provide full path of "kill" in ExecReload 2017-02-21 09:26:25 +00:00
zabbix-agent.nix nixos: use types.lines for extraConfig 2016-10-23 19:41:43 +02:00
zabbix-server.nix