le monitoring est regroupé dans un fichier

This commit is contained in:
2016-08-08 23:03:04 +02:00
parent 8ebfe6c9a6
commit 3de2cceef4
2 changed files with 9 additions and 14 deletions

View File

@@ -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}
'';
};

View File

@@ -27,12 +27,4 @@
UsePrivilegeSeparation sandbox
'';
};
# Monitoring
## Noeud de supervision munin = pas de stockage des données locales
services.munin-node = {
enable = true;
};
}