ajout du monitoring local (déplacement depuis server)

This commit is contained in:
2016-07-22 16:16:25 +02:00
parent ef3778dd54
commit 5380bb76b0
2 changed files with 28 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
imports = [
./environment.nix
./localisation.nix
./monitoring.nix
./networking.nix
./services.nix

27
monitoring.nix Normal file
View File

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