|
|
|
@ -21,6 +21,15 @@ mkIf flags.munin {
|
|
|
|
|
## Noeud de supervision munin = pas de stockage des données locales
|
|
|
|
|
services.munin-node = {
|
|
|
|
|
enable = true;
|
|
|
|
|
extraConfig = ''
|
|
|
|
|
# Ignore the apc_nis plugin, as it throws errors as I don't have an UPS.
|
|
|
|
|
# It's there because munin-node-configure is called with the contrib group,
|
|
|
|
|
# and the plugin has no method to check whether there's a compatible UPS available.
|
|
|
|
|
ignore_file ^apc_nis$
|
|
|
|
|
|
|
|
|
|
ignore_file ^sensors_-wrapped$
|
|
|
|
|
ignore_file ^.sensors_-wrapped$
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
systemd.services.munin-node = {
|
|
|
|
|
path = with pkgs; [ munin lm_sensors ];
|
|
|
|
|