le monitoring est un service publiable -> public

This commit is contained in:
2016-08-08 23:04:14 +02:00
parent 3de2cceef4
commit 7367bd462e
3 changed files with 1 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
# installées systématiquement
./environment.nix
./localisation.nix
./service-monitoring.nix
# commandées par config-generator
## option de configuration spécifique

View File

@@ -0,0 +1,31 @@
{ config, pkgs, ... }:
{
# 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 = ''
[${config.networking.hostName}]
address localhost
'';
extraGlobalConfig = ''
contact.email.command mail -s "Munin notification for ''${var:host}" root@${config.networking.hostName}
'';
};
networking.firewall.allowedTCPPorts = [
# TODO configurer les bon ports lors de l'ouverture du service
8000
];
## Documentation
# * https://nixos.org/wiki/Create_and_debug_nix_packages
# * http://chriswarbo.net/essays/nixos/developing_on_nixos.html
}