You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
763 B
Nix
32 lines
763 B
Nix
9 years ago
|
{ config, pkgs, ... }:
|
||
|
|
||
|
{
|
||
9 years ago
|
# Monitoring
|
||
|
|
||
|
# Noeud de supervision munin = pas de stockage des données locales
|
||
|
services.munin-node = {
|
||
|
enable = true;
|
||
|
};
|
||
|
|
||
|
# Munin server -- generate /var/www/munin
|
||
9 years ago
|
services.munin-cron = {
|
||
|
enable = true;
|
||
|
hosts = ''
|
||
|
[${config.networking.hostName}]
|
||
|
address localhost
|
||
|
'';
|
||
|
extraGlobalConfig = ''
|
||
9 years ago
|
contact.email.command mail -s "Munin notification for ''${var:host}" root@${config.networking.hostName}
|
||
9 years ago
|
'';
|
||
|
};
|
||
|
|
||
|
networking.firewall.allowedTCPPorts = [
|
||
|
# TODO configurer les bon ports lors de l'ouverture du service
|
||
9 years ago
|
8000
|
||
9 years ago
|
];
|
||
|
|
||
|
## Documentation
|
||
|
# * https://nixos.org/wiki/Create_and_debug_nix_packages
|
||
|
# * http://chriswarbo.net/essays/nixos/developing_on_nixos.html
|
||
|
}
|