diff --git a/base/monitoring.nix b/base/monitoring.nix index 332f7bb..d754594 100644 --- a/base/monitoring.nix +++ b/base/monitoring.nix @@ -1,11 +1,14 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running ‘nixos-help’). - { config, pkgs, ... }: { - ## Munin server -- generate /var/www/munin + # Monitoring + + # Noeud de supervision munin = pas de stockage des données locales + services.munin-node = { + enable = true; + }; + + # Munin server -- generate /var/www/munin services.munin-cron = { enable = true; hosts = '' @@ -13,7 +16,7 @@ address localhost ''; extraGlobalConfig = '' - contact.email.command mail -s "Munin notification for ''${var:host}" hostmaster@prunetwork.fr + contact.email.command mail -s "Munin notification for ''${var:host}" root@${config.networking.hostName} ''; }; diff --git a/base/services.nix b/base/services.nix index 667c707..1609c6c 100644 --- a/base/services.nix +++ b/base/services.nix @@ -27,12 +27,4 @@ UsePrivilegeSeparation sandbox ''; }; - - # Monitoring - - ## Noeud de supervision munin = pas de stockage des données locales - - services.munin-node = { - enable = true; - }; }